(*
- * 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
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;