X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FDEVEL%2Focaml-http%2Fhttp_daemon.ml;h=6b2818ec1a6995b6460da5999cb634cf5d86fcab;hb=1957a1f151c547f04625c4379e51ab66bddb69c7;hp=5b621bf55f8a6d176aa2565e21baa10bd590ef75;hpb=e8466faa2922f4bb480a87e88435bf0ddc26a747;p=helm.git
diff --git a/helm/DEVEL/ocaml-http/http_daemon.ml b/helm/DEVEL/ocaml-http/http_daemon.ml
index 5b621bf55..6b2818ec1 100644
--- a/helm/DEVEL/ocaml-http/http_daemon.ml
+++ b/helm/DEVEL/ocaml-http/http_daemon.ml
@@ -301,7 +301,7 @@ let rec wrap_parse_request_w_safety parse_function inchan outchan =
"
\nwhile received request 1st line was:
\n" ^ req)
outchan;
raise Again
- | (Unsupported_method meth) as e ->
+ | (Invalid_HTTP_method meth) as e ->
debug_print (pp_parse_exc e);
respond_error
~code:501
@@ -312,7 +312,7 @@ let rec wrap_parse_request_w_safety parse_function inchan outchan =
debug_print (pp_parse_exc e);
respond_error ~code:400 ~body:("Malformed URL: '" ^ uri ^ "'") outchan;
raise Again
- | (Unsupported_HTTP_version version) as e ->
+ | (Invalid_HTTP_version version) as e ->
debug_print (pp_parse_exc e);
respond_error
~code:505
@@ -353,7 +353,7 @@ let chdir_to_document_root = function (* chdir to document root *)
let server_of_mode = function
| `Single -> Http_tcp_server.simple
- | `Fork -> Http_tcp_server.ocaml_builtin
+ | `Fork -> Http_tcp_server.fork
| `Thread -> Http_tcp_server.thread
(* TODO support also chroot to 'root', not only chdir *)