X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fhttp_getter%2Fhttp_getter_common.ml;h=12a2e2ea914f7fd4550eebb2ad4709a860eb2e75;hb=4bf917b35e5ce1a71b5b8923800fb8eaba1b3943;hp=fc3867128203363ee110e1c14ff0f67db6bd3ca4;hpb=d599c257fed6a37da72494676ed24315a6d8b2fb;p=helm.git diff --git a/helm/http_getter/http_getter_common.ml b/helm/http_getter/http_getter_common.ml index fc3867128..12a2e2ea9 100644 --- a/helm/http_getter/http_getter_common.ml +++ b/helm/http_getter/http_getter_common.ml @@ -1,5 +1,5 @@ (* - * Copyright (C) 2000, HELM Team. + * Copyright (C) 2003, HELM Team. * * This file is part of HELM, an Hypertextual, Electronic * Library of Mathematics, developed at the Computer Science @@ -97,9 +97,9 @@ let return_xml_msg = mk_return_fun null_pp "text/xml" let return_file ~fname ?contype ?contenc ?(patch_fun = fun x -> x) outchan = let headers = match (contype, contenc) with - | (Some t, Some e) -> [ "Content-Type", t; "Content-Enconding", e ] - | (Some t, None) -> [ "Content-Type" , t ] - | (None, Some e) -> [ "Content-Enconding", e ] + | (Some t, Some e) -> ["Content-Encoding", e; "Content-Type", t] + | (Some t, None) -> ["Content-Type" , t] + | (None, Some e) -> ["Content-Encoding", e] | (None, None) -> [] in Http_daemon.send_basic_headers ~code:200 outchan;