]> matita.cs.unibo.it Git - helm.git/commitdiff
embedded configuration infos in usage string
authorStefano Zacchiroli <zack@upsilon.cc>
Wed, 12 Mar 2003 18:02:04 +0000 (18:02 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Wed, 12 Mar 2003 18:02:04 +0000 (18:02 +0000)
helm/http_getter/http_getter.ml

index b5cfa47d9564561c09783dfb85b702ae280f7605..26b0774a49bc76fdb343486612173ae4919a1222 100644 (file)
@@ -333,7 +333,10 @@ let callback (req: Http_types.request) outchan =
     debug_print ("Connection from " ^ req#clientAddr);
     debug_print ("Received request: " ^ req#path);
     (match req#path with
-    | "/help" -> return_html_raw Http_getter_const.usage_string outchan
+    | "/help" ->
+        return_html_raw
+          (Http_getter_const.usage_string (Http_getter_env.env_to_string ()))
+          outchan
     | "/getxml" | "/getxslt" | "/getdtd" | "/resolve" | "/register" ->
         (let uri = req#param "uri" in  (* common parameter *)
         match req#path with
@@ -421,7 +424,8 @@ in
     (* daemon initialization *)
 
 let main () =
-  Http_getter_env.dump_env ();
+  print_string (Http_getter_env.env_to_string ());
+  flush stdout;
   Unix.putenv "http_proxy" "";
   at_exit save_maps;
   Sys.catch_break true;