Enabled content-length in Special:DownloadFile even when gzip is on. Should probably check the http spec to see if Content-Length should match the decoded or encoded length
authorDan Fuhry <dan@enanocms.org>
Fri, 30 Jul 2010 21:31:30 -0400
changeset 1279 0bc945385d74
parent 1278 9a4b0c3056ac
child 1280 871f17a0d27d
Enabled content-length in Special:DownloadFile even when gzip is on. Should probably check the http spec to see if Content-Length should match the decoded or encoded length
plugins/SpecialUpdownload.php
--- a/plugins/SpecialUpdownload.php	Fri Jul 30 15:49:23 2010 -0400
+++ b/plugins/SpecialUpdownload.php	Fri Jul 30 21:31:30 2010 -0400
@@ -301,7 +301,7 @@
 	{
 		header('Content-disposition: attachment, filename="' . $filename . '";');
 	}
-	if ( !@$GLOBALS['do_gzip'] )
+	// if ( !@$GLOBALS['do_gzip'] )
 		header('Content-length: ' . $len);
 	
 	header('Last-Modified: '.enano_date('r', $row['time_id']));