Anomie has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/177240

Change subject: Just remove Content-Length in robots.php
......................................................................

Just remove Content-Length in robots.php

It's causing problems somewhere in the stack, possibly by not getting
corrected when something gzips the content.

Change-Id: I78a1eb20053c458a3810f85a7be415f3174d570c
---
M w/robots.php
1 file changed, 2 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/40/177240/1

diff --git a/w/robots.php b/w/robots.php
index 0e66c4c..1fe53fa 100644
--- a/w/robots.php
+++ b/w/robots.php
@@ -35,8 +35,6 @@
        $lastmod = gmdate( 'D, j M Y H:i:s', $stats['mtime'] ) . ' GMT';
        header( "Last-modified: $lastmod" );
 }
-$text = 
"#\n#\n#----------------------------------------------------------#\n#\n#\n#\n" 
. $text;
-header( "Content-Length: " . ( filesize( $robotsfile ) + strlen( $text ) ) );
-
 fpassthru( $robots );
-echo $text;
+
+echo 
"#\n#\n#----------------------------------------------------------#\n#\n#\n#\n" 
. $text;

-- 
To view, visit https://gerrit.wikimedia.org/r/177240
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I78a1eb20053c458a3810f85a7be415f3174d570c
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Anomie <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to