Skip to content

Commit 1db90c4

Browse files
committed
fix: skip http proxy added header
1 parent 3bb0831 commit 1db90c4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

system/HTTP/CURLRequest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,10 @@ public function send(string $method, string $url)
387387
$output = substr($output, strpos($output, $breakString) + 4);
388388
}
389389

390+
if (strpos($output, 'HTTP/1.1 200 Connection established') === 0) {
391+
$output = substr($output, strpos($output, $breakString) + 4);
392+
}
393+
390394
// If request and response have Digest
391395
if (isset($this->config['auth'][2]) && $this->config['auth'][2] === 'digest' && strpos($output, 'WWW-Authenticate: Digest') !== false) {
392396
$output = substr($output, strpos($output, $breakString) + 4);

0 commit comments

Comments
 (0)