summaryrefslogtreecommitdiffstats
path: root/vendor/fguillot/picofeed/lib/PicoFeed/Client/Curl.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/fguillot/picofeed/lib/PicoFeed/Client/Curl.php')
-rw-r--r--vendor/fguillot/picofeed/lib/PicoFeed/Client/Curl.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Client/Curl.php b/vendor/fguillot/picofeed/lib/PicoFeed/Client/Curl.php
index 4ad3f141d..0c609db29 100644
--- a/vendor/fguillot/picofeed/lib/PicoFeed/Client/Curl.php
+++ b/vendor/fguillot/picofeed/lib/PicoFeed/Client/Curl.php
@@ -80,7 +80,7 @@ class Curl extends Client
{
$length = strlen($buffer);
- if ($buffer === "\r\n") {
+ if ($buffer === "\r\n" || $buffer === "\n") {
$this->response_headers_count++;
}
else {
@@ -162,6 +162,7 @@ class Curl extends Client
* Prepare curl proxy context
*
* @access private
+ * @param resource $ch
* @return resource $ch
*/
private function prepareProxyContext($ch)
@@ -190,6 +191,7 @@ class Curl extends Client
* Prepare curl auth context
*
* @access private
+ * @param resource $ch
* @return resource $ch
*/
private function prepareAuthContext($ch)
@@ -205,6 +207,7 @@ class Curl extends Client
* Set write/header functions
*
* @access private
+ * @param resource $ch
* @return resource $ch
*/
private function prepareDownloadMode($ch)
@@ -305,7 +308,7 @@ class Curl extends Client
{
$this->executeContext();
- list($status, $headers) = HttpHeaders::parse(explode("\r\n", $this->response_headers[$this->response_headers_count - 1]));
+ list($status, $headers) = HttpHeaders::parse(explode("\n", $this->response_headers[$this->response_headers_count - 1]));
// When restricted with open_basedir
if ($this->needToHandleRedirection($follow_location, $status)) {