(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: image.ml,v 1.5 2004/09/09 12:21:22 rich Exp $
+ * $Id: image.ml,v 1.7 2004/10/04 15:19:56 rich Exp $
*
* 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
if version <> None then
(* Set a medium-length expiry time on this resource. *)
- Table.set (Request.headers_out r) "Expires" (Cgi_expires.expires_medium());
+ Table.set (Request.headers_out r) "Expires" (Expires.medium ());
q#header ~content_type:mime_type ();
print_string r data
let () =
- register_script run
+ register_script ~restrict:[CanView] run