Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c895a40

Browse filesBrowse files
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 ------- 7088ef7 [HttpClient] fix HttpClientDataCollector when handling canceled responses
2 parents 48272f0 + 7088ef7 commit c895a40
Copy full SHA for c895a40

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/HttpClient/DataCollector/HttpClientDataCollector.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/DataCollector/HttpClientDataCollector.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ private function collectOnClient(TraceableHttpClient $client): array
120120
unset($info['http_method']);
121121
}
122122

123-
if ($trace['url'] === $info['url']) {
123+
if (($info['url'] ?? null) === $trace['url']) {
124124
unset($info['url']);
125125
}
126126

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.