From: jenkins-bot Date: Sun, 24 Apr 2016 21:48:22 +0000 (+0000) Subject: Merge "Add X-Robots-Tag header to Special:Export dumps" X-Git-Tag: 1.31.0-rc.0~7196 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=41e2a2486c562dba0dd22ceaf635a7d161718af8;hp=349e851584d5e6050ec485cf075241426953bcaf;p=lhc%2Fweb%2Fwiklou.git Merge "Add X-Robots-Tag header to Special:Export dumps" --- diff --git a/includes/specials/SpecialExport.php b/includes/specials/SpecialExport.php index ede367ee08..3e66ab08d3 100644 --- a/includes/specials/SpecialExport.php +++ b/includes/specials/SpecialExport.php @@ -168,6 +168,7 @@ class SpecialExport extends SpecialPage { // This should provide safer streaming for pages with history wfResetOutputBuffers(); $request->response()->header( "Content-type: application/xml; charset=utf-8" ); + $request->response()->header( "X-Robots-Tag: noindex,nofollow" ); if ( $request->getCheck( 'wpDownload' ) ) { // Provide a sane filename suggestion