Go
fastapi
π Check Content-Type request header before assuming JSON
#2118
Merged
Overview
Commits
12
Changes
View On
GitHub
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
π Check Content-Type request header before assuming JSON
#2118
tiangolo
merged 12 commits into
fastapi:master
from
patrickkwang:fix_1018
ArcLightSlavik
commented on 2020-10-02
ArcLightSlavik
approved these changes on 2020-10-02
Check Content-Type before assuming JSON
e46bce35
Remove now-unneccessary exception handling
df4fdf0c
Fix broken-body test
4e8605e5
Assume "Content-Type": "application/octet-stream"
c7191f50
Explicitly specify Content-Type in gzip test
c1692586
Interpret as JSON any mimetype ending with "json"
d644c306
Generalize media type parsing to handle parameters
6ecfba9a
Add test for handling various Content-Type headers
d752efdf
patrickkwang
force pushed
to
d752efdf
3 years ago
β Update tests for content-type headers and include extra corner case
f80305de
β»οΈ Re-implement JSON content-type parsing with Python's standard librβ¦
344ae3f8
π Merge master to update codebase, dependencies and tests
29257d0e
tiangolo
changed the title
Check Content-Type before assuming JSON
π Check Content-Type request header before assuming JSON
3 years ago
β Include again test with patch to force exception, for coverage
5729e8a1
tiangolo
merged
fa7e3c99
into master
3 years ago
Login to write a write a comment.
Login via GitHub
Reviewers
ArcLightSlavik
Assignees
No one assigned
Labels
None yet
Milestone
No milestone
Login to write a write a comment.
Login via GitHub