bug #35672 [HttpClient] fix HttpClientDataCollector when handling canceled responses (thematchless)
This PR was merged into the 4.4 branch.
Discussion
----------
[HttpClient] fix HttpClientDataCollector when handling canceled responses
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | -
| License | MIT
| Doc PR | -
small addition to the already merged #35562
Commits
-------
7088ef78f7
[HttpClient] fix HttpClientDataCollector when handling canceled responses
This commit is contained in:
commit
c895a400d9
@ -120,7 +120,7 @@ final class HttpClientDataCollector extends DataCollector implements LateDataCol
|
|||||||
unset($info['http_method']);
|
unset($info['http_method']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($trace['url'] === $info['url']) {
|
if (($info['url'] ?? null) === $trace['url']) {
|
||||||
unset($info['url']);
|
unset($info['url']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user