Permalink
Browse files

Use explode instead of deprecated split

  • Loading branch information...
1 parent d04cbc4 commit c92be117e7a4dc7d5dc13a72c9ed17b1746f03bb @shuber committed Sep 8, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/curl_response.php
View
@@ -41,7 +41,7 @@ public function __construct($response) {
# Extract headers from response
preg_match_all($pattern, $response, $matches);
$headers_string = array_pop($matches[0]);
- $headers = split("\r\n", str_replace("\r\n\r\n", '', $headers_string));
+ $headers = explode("\r\n", str_replace("\r\n\r\n", '', $headers_string));
# Remove headers from the response body
$this->body = str_replace($headers_string, '', $response);

0 comments on commit c92be11

Please sign in to comment.