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=39a74bb652fc686e070b2ec8a10714324a4fbc81;hpb=1b41bb30966254e86fdc4a044331b301cfb7a029;p=helm.git diff --git a/helm/DEVEL/ocaml-http/http_daemon.ml b/helm/DEVEL/ocaml-http/http_daemon.ml index 39a74bb65..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