cvs: pearweb /include pear-database.php
| From: | Stig Bakken | Date: | Sun, 19 May 2002 21:00:28 +0000 |
| Subject: | cvs: pearweb /include pear-database.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3938@lists.php.net to get a copy of this message | ||
ssb Sun May 19 17:00:28 2002 EDT
Modified files:
/pearweb/include pear-database.php
Log:
* add last-modified header to http downloads
Index: pearweb/include/pear-database.php
diff -u pearweb/include/pear-database.php:1.88 pearweb/include/pear-database.php:1.89
--- pearweb/include/pear-database.php:1.88 Sat May 4 07:40:42 2002
+++ pearweb/include/pear-database.php Sun May 19 17:00:22 2002
@@ -17,11 +17,12 @@
| Tomas V.V.Cox <cox@php.net> |
| Martin Jansen <mj@php.net> |
+----------------------------------------------------------------------+
- $Id: pear-database.php,v 1.88 2002/05/04 11:40:42 mj Exp $
+ $Id: pear-database.php,v 1.89 2002/05/19 21:00:22 ssb Exp $
*/
require_once 'DB/storage.php';
require_once 'PEAR/Common.php';
+require_once 'HTTP.php';
// {{{ validate()
@@ -820,6 +821,7 @@
release::logDownload($package_id, $log_release, $log_file);
+ header('Last-modified: '.HTTP::date(filemtime($path)));
header('Content-type: application/octet-stream');
if ($uncompress) {
$tarname = preg_replace('/\.tgz$/', '.tar', $basename);