Skip to content

Commit 3f45583

Browse files
committed
Handle multiple HTTP/1.1 100 Continue responses
This solves issue #19
1 parent 67f7c49 commit 3f45583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Curl/Curl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public function _exec()
177177
$this->response_headers = '';
178178
if (!(strpos($this->response, "\r\n\r\n") === false)) {
179179
list($response_header, $this->response) = explode("\r\n\r\n", $this->response, 2);
180-
if ($response_header === 'HTTP/1.1 100 Continue') {
180+
while (strtolower(trim($response_header)) === 'http/1.1 100 continue') {
181181
list($response_header, $this->response) = explode("\r\n\r\n", $this->response, 2);
182182
}
183183
$this->response_headers = preg_split('/\r\n/', $response_header, null, PREG_SPLIT_NO_EMPTY);

0 commit comments

Comments
 (0)