X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fgraphs%2Ftools%2FdrawGraph.ml;h=c17902fbc551dd85e92f0a4a5315fee500d978f7;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=1a980fede0d3559e1b0625e28539e4093584ad04;hpb=ebc70db9d8720a6f776e7d7c09c7833e500b9eb3;p=helm.git diff --git a/helm/graphs/tools/drawGraph.ml b/helm/graphs/tools/drawGraph.ml index 1a980fede..c17902fbc 100644 --- a/helm/graphs/tools/drawGraph.ml +++ b/helm/graphs/tools/drawGraph.ml @@ -35,7 +35,7 @@ let daemon_name = "Draw Graph";; let wget url fname = prerr_endline (sprintf "DEBUG: wgetting url '%s'" url); let oc = open_out fname in - Http_client.http_get_iter (output_string oc) url; + Http_user_agent.get_iter (output_string oc) url; close_out oc ;; @@ -82,11 +82,11 @@ let callback (req: Http_types.request) outchan = ignore (Unix.system ( sprintf "make PID=%s clean_tmp; rm -f prova0.%s.dot" pid pid)) | invalid_request -> - Http_daemon.respond_error ~status:(`Client_error `Bad_request) outchan) + Http_daemon.respond_error ~code:(`Status (`Client_error `Bad_request)) + outchan) with | Http_types.Param_not_found attr_name -> - Http_daemon.respond_error - ~status:(`Client_error `Bad_request) + Http_daemon.respond_error ~code:(`Status (`Client_error `Bad_request)) ~body:(sprintf "Parameter '%s' is missing" attr_name) outchan in