X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FDEVEL%2Focaml-http%2Fhttp_message.ml;h=56a9e8dc7b6a0c824ec90b690d1f73caa0158e44;hb=ebc089606ccbb3e9dbde142542a1f98f5020b4dd;hp=2de1e1cbe0dacd1768e458b2cd53a3453c897632;hpb=6b6f542566b73236e1146dc1dba4ef7219d8ffe7;p=helm.git diff --git a/helm/DEVEL/ocaml-http/http_message.ml b/helm/DEVEL/ocaml-http/http_message.ml index 2de1e1cbe..56a9e8dc7 100644 --- a/helm/DEVEL/ocaml-http/http_message.ml +++ b/helm/DEVEL/ocaml-http/http_message.ml @@ -2,7 +2,7 @@ (* OCaml HTTP - do it yourself (fully OCaml) HTTP daemon - Copyright (C) <2002> Stefano Zacchiroli + Copyright (C) <2002-2004> Stefano Zacchiroli This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -43,14 +43,14 @@ class virtual message ~body ~headers ~version ~clisockaddr ~srvsockaddr = val _contentsBuf = Buffer.create 1024 val _headers = Hashtbl.create 11 - val mutable _version: version = version + val mutable _version: version option = version initializer self#setBody body; self#addHeaders headers method version = _version - method setVersion v = _version <- v + method setVersion v = _version <- Some v method body = Buffer.contents _contentsBuf method setBody c =