X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FDEVEL%2Focaml-http%2Fexamples%2Fdump_args.ml;h=ef4630fdec715cf86fcbe304a40f4dc49af8cce1;hb=6de3b960806c544b580a15fd28309eea0c319771;hp=c1f445f12719de32ac66a581292bda35b2b3962a;hpb=697d0d8857366485238a67386d0ce8f18404ac42;p=helm.git diff --git a/helm/DEVEL/ocaml-http/examples/dump_args.ml b/helm/DEVEL/ocaml-http/examples/dump_args.ml index c1f445f12..ef4630fde 100644 --- a/helm/DEVEL/ocaml-http/examples/dump_args.ml +++ b/helm/DEVEL/ocaml-http/examples/dump_args.ml @@ -19,6 +19,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *) +open Printf;; + let dump_args path args = Printf.sprintf "PATH: %s\nARGS:\n%s" @@ -26,7 +28,7 @@ let dump_args path args = (String.concat "" (List.map - (fun (name, value) -> "\tNAME: " ^ name ^ ", VALUE: " ^ value ^ "\n") + (fun (name, value) -> sprintf "\tNAME: '%s', VALUE: '%s'\n" name value) args)) in let callback path args outchan =