Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[HttpClient] fix PHP warning + accept status code >= 600#36823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#36717
LicenseMIT
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.

@nicolas-grekasnicolas-grekas merged commitcc519aa intosymfony:4.4May 16, 2020
@nicolas-grekasnicolas-grekas deleted the hc-wider-code-range branchMay 16, 2020 10:15
@fabpotfabpot mentioned this pull requestMay 16, 2020
@gmponos
Copy link
Contributor

Does this allow also status codes like1,9 or50.. meaning below100 ?

@nicolas-grekas
Copy link
MemberAuthor

Nope it doesn't. Those will trigger a TransportExceptionInterface

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@javiereguiluzjaviereguiluzjaviereguiluz approved these changes

+1 more reviewer

@apfelboxapfelboxapfelbox left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

5 participants

@nicolas-grekas@gmponos@javiereguiluz@apfelbox@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp