X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Ffile.ml;h=d495f80063fe69a7ca841419c812567e8834b73f;hb=aa707ecceaeb33816feb249f7f68423c1e5ee697;hp=a964aa316578f28cf46a7373d233f768ecc90cd5;hpb=11b93485a29771f4d826c50d9efc6d3607dfa50f;p=cocanwiki.git diff --git a/scripts/file.ml b/scripts/file.ml index a964aa3..d495f80 100644 --- a/scripts/file.ml +++ b/scripts/file.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: file.ml,v 1.5 2004/09/09 12:21:22 rich Exp $ + * $Id: file.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 @@ -52,10 +52,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