Permalink
Browse files

POST support and other improvements

  • Loading branch information...
1 parent faa3d7c commit c6755c6414770eaa26d0069fabfe37f0f274ae54 @christianhellsten committed Dec 14, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 http.php
View
@@ -73,7 +73,7 @@ protected static function execute($url, $post_data, $headers, $options) {
# Note: ignore eg. "HTTP/1.0 200 Connection established" from proxies
$many = preg_match("#HTTP\/1\.[0,1] (100 Continue|200 Connection established)#", $text);
if($many) {
- list($header_text, $proxy_status, $body) = explode("\r\n\r\n", $response, 3);
+ list($header_text, $proxy_status, $body) = explode("\r\n\r\n", $response, 3);
} else {
list($header_text, $body) = explode("\r\n\r\n", $response, 2);
}

0 comments on commit c6755c6

Please sign in to comment.