-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
handle custom content types #2594
Conversation
57f8bac
to
5c59d7a
Compare
Codecov Report
@@ Coverage Diff @@
## master #2594 +/- ##
==========================================
+ Coverage 97.87% 97.87% +<.01%
==========================================
Files 38 38
Lines 7304 7307 +3
Branches 1263 1263
==========================================
+ Hits 7149 7152 +3
Misses 51 51
Partials 104 104
Continue to review full report at Codecov.
|
Sorry, I don't follow. |
We are reading data via HTTP and get a response which has a To read JSON data from the response, the full content type has to be specified:
As This PR will allow us to use
and still get a correct response with any of these |
5c59d7a
to
1794690
Compare
In I have a strong temptation to drop these params from aiohttp client too. |
Supporting all non-standard combinations for custom json protocol makes a mess. |
I would be fine with dropping the content type verification. |
Let's close the PR as |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
What do these changes do?
When using a custom content type like
application/vnd.aiohttp-test+json
the client now ignores content type parameters (e. g. an encoding setting) when checking for matching types.Are there changes in behavior for the user?
Nothing expected here. Clients which include the parameters in
content_type
(as a workaround) should still work.Related issue number
#2206 is somehow related
Checklist
CONTRIBUTORS.txt
CHANGES
folder<issue_id>.<type>
for example (588.bug)issue_id
change it to the pr id after creating the pr.feature
: Signifying a new feature..bugfix
: Signifying a bug fix..doc
: Signifying a documentation improvement..removal
: Signifying a deprecation or removal of public API..misc
: A ticket has been closed, but it is not of interest to users.