Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7447
http.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 11:24 PM
2014-11-21 23:24:46 (UTC+0)
Size
543 B
Referenced Files
None
Subscribers
None
http.diff
View Options
Index: HttpFunctions.php
===================================================================
--- HttpFunctions.php (revision 84116)
+++ HttpFunctions.php (working copy)
@@ -785,7 +785,13 @@
return $this->status;
}
- if ( $this->status->isOK() ) {
+ // If everything went OK, or we recieved some error code.
+ // get the response body content.
+ var_dump("Got here");
+ if ( $this->status->isOK()
+ || (int)$this->respStatus >= 300 )
+ {
+ var_dump("read body");
while ( !feof( $fh ) ) {
$buf = fread( $fh, 8192 );
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6978
Default Alt Text
http.diff (543 B)
Attached To
Mode
T29924: PhpHttpRequest doesn't return response body if HTTP != 200
Attached
Detach File
Event Timeline
Log In to Comment