]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - includes/AjaxResponse.php
MediaWiki 1.15.0
[autoinstallsdev/mediawiki.git] / includes / AjaxResponse.php
index 63468a14dac47b3a608e5050e3b07b8e4fe1b2e3..26b6f443981e86f57de444bbce1326feffde7c7d 100644 (file)
@@ -45,7 +45,7 @@ class AjaxResponse {
                $this->mText = '';
                $this->mResponseCode = '200 OK';
                $this->mLastModified = false;
-               $this->mContentType= 'text/html; charset=utf-8';
+               $this->mContentType= 'application/x-wiki';
 
                if ( $text ) {
                        $this->addText( $text );
@@ -178,6 +178,7 @@ class AjaxResponse {
                        wfDebug( "$fname: -- client send If-Modified-Since: " . $modsince . "\n", false );
                        wfDebug( "$fname: --  we might send Last-Modified : $lastmod\n", false );
                        if( ($ismodsince >= $timestamp ) && $wgUser->validateCache( $ismodsince ) && $ismodsince >= $wgCacheEpoch ) {
+                               ini_set('zlib.output_compression', 0);
                                $this->setResponseCode( "304 Not Modified" );
                                $this->disable();
                                $this->mLastModified = $lastmod;