Skip to content
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

[HttpClient] Fix scoped client without query option configuration #36377

Conversation

X-Coder264
Copy link
Contributor

@X-Coder264 X-Coder264 commented Apr 7, 2020

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR

The query key default value is an empty array and because of that it is always set. Processing a configuration for a scoped HTTP client (which has a scope and does not have a base_uri) results in the configuration being invalid. The error message says that query parameters cannot be aplied to the base URI since it is not defined (which doesn't make sense since the query parameters don't exist because they are empty).

@X-Coder264 X-Coder264 force-pushed the fix-scoped-client-without-query-option-config branch from 907045a to a07578d Compare April 7, 2020 12:53
@nicolas-grekas nicolas-grekas added this to the 4.4 milestone Apr 7, 2020
@nicolas-grekas
Copy link
Member

Thank you @X-Coder264.

@nicolas-grekas nicolas-grekas merged commit 977276e into symfony:4.4 Apr 10, 2020
@X-Coder264 X-Coder264 deleted the fix-scoped-client-without-query-option-config branch April 10, 2020 21:41
This was referenced Apr 28, 2020
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.

None yet

3 participants