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 d968608 commit a74e6a4Copy full SHA for a74e6a4
system/HTTP/CURLRequest.php
@@ -385,6 +385,12 @@ public function send(string $method, string $url)
385
// Set the string we want to break our response from
386
$breakString = "\r\n\r\n";
387
388
+ if (isset($this->config['allow_redirects']) && $this->config['allow_redirects'] !== false) {
389
+ while (preg_match('/^HTTP\/\d(?:\.\d)? 3\d\d/', $output)) {
390
+ $output = substr($output, strpos($output, $breakString) + 4);
391
+ }
392
393
+
394
while (str_starts_with($output, 'HTTP/1.1 100 Continue')) {
395
$output = substr($output, strpos($output, $breakString) + 4);
396
}
0 commit comments