com web/pecl: enable x-readfile, no more support for uncompressed (never used since long): include/pear-database.php

From: Date: Mon, 30 Mar 2015 11:17:26 +0000
Subject: com web/pecl: enable x-readfile, no more support for uncompressed (never used since long): include/pear-database.php
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-21990@lists.php.net to get a copy of this message
Commit: b1d7b614d55fa7a9a3a884cc04969c2a695f9c3b Author: Pierre Joye <pierre.php@gmail.com> Mon, 30 Mar 2015 13:17:26 +0200 Parents: 9c3da28e03fe76e450d2e383de2b40006ae14863 Branches: master Link: http://git.php.net/?p=web/pecl.git;a=commitdiff;h=b1d7b614d55fa7a9a3a884cc04969c2a695f9c3b Log: enable x-readfile, no more support for uncompressed (never used since long) Changed paths: M include/pear-database.php Diff: diff --git a/include/pear-database.php b/include/pear-database.php index ee840ba..21e0dca 100644 --- a/include/pear-database.php +++ b/include/pear-database.php @@ -1950,6 +1950,11 @@ class release release::logDownload($package_id, $log_release, $log_file); + header('Content-Disposition: attachment;filename=' . $basename); + header('Content-type: application/octet-stream'); + header('X-Sendfile: ' . '/local/www/sites/pecl.php.net/public_html/packages/' . $basename); + +if (0) { header('Last-modified: '.HTTP::date(filemtime($path))); header('Content-type: application/octet-stream'); if ($uncompress) { @@ -1961,7 +1966,7 @@ class release header('Content-length: '.filesize($path)); readfile($path); } - +} return true; } header('HTTP/1.0 404 Not Found');

« previous php.pecl.cvs (#21990) next »