Skip to content

[HttpClient] Fix canceling MockResponse #49926

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

fancyweb
Copy link
Contributor

@fancyweb fancyweb commented Apr 4, 2023

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? -
Tickets #49925
License MIT
Doc PR -

MockResponse not issued by MockHttpClient might not have the http_method info set.

http_code looks safe since it's defined in the constructor.

@nicolas-grekas
Copy link
Member

Thank you @fancyweb.

@nicolas-grekas nicolas-grekas merged commit 596dcc3 into symfony:5.4 Apr 4, 2023
@fancyweb fancyweb deleted the http-client/fix-canceling-mock-response branch April 4, 2023 15:39
@fabpot fabpot mentioned this pull request Apr 13, 2023
@fabpot fabpot mentioned this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants