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 622e6b4 commit 7d5c652Copy full SHA for 7d5c652
1 file changed
Response/CurlResponse.php
@@ -205,7 +205,6 @@ public function getInfo(?string $type = null): mixed
205
{
206
if (!$info = $this->finalInfo) {
207
$info = array_merge($this->info, curl_getinfo($this->handle));
208
- $info['url'] = $this->info['url'] ?? $info['url'];
209
$info['redirect_url'] = $this->info['redirect_url'] ?? null;
210
211
// workaround curl not subtracting the time offset for pushed responses
@@ -221,6 +220,7 @@ public function getInfo(?string $type = null): mixed
221
220
rewind($this->debugBuffer);
222
ftruncate($this->debugBuffer, 0);
223
}
+ $this->info = array_merge($this->info, $info);
224
$waitFor = curl_getinfo($this->handle, \CURLINFO_PRIVATE);
225
226
if ('H' !== $waitFor[0] && 'C' !== $waitFor[0]) {
0 commit comments