Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Commitcc519aa
committed
bug#36823 [HttpClient] fix PHP warning + accept status code >= 600 (nicolas-grekas)
This PR was merged into the 4.4 branch.Discussion----------[HttpClient] fix PHP warning + accept status code >= 600| Q | A| ------------- | ---| Branch? | 4.4| Bug fix? | yes| New feature? | no| Deprecations? | no| Tickets |Fix#36717| License | MIT| Doc PR | -This fixes the PHP warning reported in the linked issue.This also relaxes the accepted status codes, withhttps://www.linkedin.com/company/linkedin/ as an example that returns a non-conformant one (`999`).These are now handled as 5xx codes, ie they trigger a ServerException.Commits-------c764b5c [HttpClient] fix PHP warning + accept status code >= 600File tree
2 files changed
+10
-3
lines changed- src/Symfony/Component/HttpClient/Response
2 files changed
+10
-3
lines changedLines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
316 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
317 | 324 | | |
318 | 325 | | |
319 | 326 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| |||
0 commit comments
Comments
(0)