We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1ae19d commit c2ae246Copy full SHA for c2ae246
lib/Varien/Http/Adapter/Curl.php
@@ -192,8 +192,14 @@ public function read()
192
$response = trim($response[1]);
193
}
194
195
- if (stripos($response, "Transfer-Encoding: chunked\r\n")) {
196
- $response = str_ireplace("Transfer-Encoding: chunked\r\n", '', $response);
+ $responsePart = "HTTP/1.1 200 Connection established\r\n";
+ if (stripos($response, $responsePart) === 0) {
197
+ $response = str_ireplace($responsePart, '', $response);
198
+ }
199
+
200
+ $responsePart = "Transfer-Encoding: chunked\r\n";
201
+ if (stripos($response, $responsePart)) {
202
203
204
205
return $response;
0 commit comments