X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fimage.ml;h=e569d44cfd5510f4241da82a83bd5d0a2f205ae5;hb=1b592b922676bd3080338cf532a3d29d38137189;hp=44845466615404215d1b89c20a0a0996234fb5da;hpb=11b93485a29771f4d826c50d9efc6d3607dfa50f;p=cocanwiki.git diff --git a/scripts/image.ml b/scripts/image.ml index 4484546..e569d44 100644 --- a/scripts/image.ml +++ b/scripts/image.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * 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 @@ -55,10 +55,10 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ = 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