Skip to content

Commit e1ef501

Browse files
committed
Remove redundant newline checking
1 parent efefd88 commit e1ef501

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Curl.class.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,7 @@ private function parseResponse($response)
284284
$response_headers = '';
285285
if (!(strpos($response, "\r\n\r\n") === false)) {
286286
list($response_header, $response) = explode("\r\n\r\n", $response, 2);
287-
$response_headers = array($response_header);
288-
if (!(strpos($response_header, "\r\n") === false)) {
289-
$response_headers = explode("\r\n", $response_header);
290-
}
287+
$response_headers = explode("\r\n", $response_header);
291288
if (in_array('HTTP/1.1 100 Continue', $response_headers)) {
292289
list($response_header, $response) = explode("\r\n\r\n", $response, 2);
293290
}

0 commit comments

Comments
 (0)