Librarian.NoRootFor _ | Librarian.FileNotFound _ -> "",[] in
include_paths := incpaths;
if readonly <> "true" then
- (let status = (MatitaAuthentication.get_status sid)#set_baseuri baseuri in
+ (let status = new MatitaEngine.status (Some uid) baseuri in
let history = [status] in
MatitaAuthentication.set_status sid status;
MatitaAuthentication.set_history sid history);
();
cgi#out_channel#output_string body;
with
+ | Sys_error _ ->
+ cgi # set_header
+ ~cache:`No_cache
+ ~content_type:"text/xml; charset=\"utf-8\""
+ ();
+ cgi#out_channel#output_string "<error />"
| Not_found _ ->
cgi # set_header
~status:`Internal_server_error