File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,6 @@ public function getInfo(?string $type = null): mixed
205205 {
206206 if (!$ info = $ this ->finalInfo ) {
207207 $ info = array_merge ($ this ->info , curl_getinfo ($ this ->handle ));
208- $ info ['url ' ] = $ this ->info ['url ' ] ?? $ info ['url ' ];
209208 $ info ['redirect_url ' ] = $ this ->info ['redirect_url ' ] ?? null ;
210209
211210 // workaround curl not subtracting the time offset for pushed responses
@@ -221,6 +220,7 @@ public function getInfo(?string $type = null): mixed
221220 rewind ($ this ->debugBuffer );
222221 ftruncate ($ this ->debugBuffer , 0 );
223222 }
223+ $ this ->info = array_merge ($ this ->info , $ info );
224224 $ waitFor = curl_getinfo ($ this ->handle , \CURLINFO_PRIVATE );
225225
226226 if ('H ' !== $ waitFor [0 ] && 'C ' !== $ waitFor [0 ]) {
You can’t perform that action at this time.
0 commit comments