Index: trunk/phase3/includes/HttpFunctions.php |
— | — | @@ -785,7 +785,10 @@ |
786 | 786 | return $this->status; |
787 | 787 | } |
788 | 788 | |
789 | | - if ( $this->status->isOK() ) { |
| 789 | + // If everything went OK, or we recieved some error code |
| 790 | + // get the response body content. |
| 791 | + if ( $this->status->isOK() |
| 792 | + || (int)$this->respStatus >= 300) { |
790 | 793 | while ( !feof( $fh ) ) { |
791 | 794 | $buf = fread( $fh, 8192 ); |
792 | 795 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -115,6 +115,7 @@ |
116 | 116 | * (bug 2581, bug 6834) Added links to thumbnail in several resolutions to the |
117 | 117 | file description page. The sizes are set by $wgImageLimits. |
118 | 118 | * (bug 28031) Add pageCount support to ArchivedFile |
| 119 | +* (bug 27924) PhpHttpRequest doesn't return response body if HTTP != 200 |
119 | 120 | |
120 | 121 | === Bug fixes in 1.18 === |
121 | 122 | * (bug 23119) WikiError class and subclasses are now marked as deprecated |