http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88131

Revision: 88131
Author:   platonides
Date:     2011-05-15 00:45:27 +0000 (Sun, 15 May 2011)
Log Message:
-----------
(Bug 9399) - MogileFS.php client halts for 1 second after PUT call waiting for 
the Server ok
Commiting the line provided 4 years ago.

Modified Paths:
--------------
    trunk/extensions/MogileClient/MogileFS.php

Modified: trunk/extensions/MogileClient/MogileFS.php
===================================================================
--- trunk/extensions/MogileClient/MogileFS.php  2011-05-14 23:49:29 UTC (rev 
88130)
+++ trunk/extensions/MogileClient/MogileFS.php  2011-05-15 00:45:27 UTC (rev 
88131)
@@ -256,7 +256,8 @@
                        curl_setopt($ch,CURLOPT_INFILE, $fin);
                        curl_setopt($ch,CURLOPT_INFILESIZE, 
filesize($filename));
                        curl_setopt($ch,CURLOPT_TIMEOUT, 4);
-                       curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+                       curl_setopt($ch,CURLOPT_RETURNTRANSFER, true);
+                       curl_setopt($ch,CURLOPT_HTTPHEADER, array('Expect: '));
                        if(!curl_exec($ch)) {
                                $this->error=curl_error($ch);
                                curl_close($ch);


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

Reply via email to