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

fix: use 415 status for bad input content type #177

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

danielgtaylor
Copy link
Owner

Return a 415 when the body unmarshaling fails due to the client-reported content type.

Copy link

codecov bot commented Nov 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (23c78a4) 92.61% compared to head (56a5692) 92.72%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #177      +/-   ##
==========================================
+ Coverage   92.61%   92.72%   +0.11%     
==========================================
  Files          17       17              
  Lines        1950     1952       +2     
==========================================
+ Hits         1806     1810       +4     
+ Misses        105      104       -1     
+ Partials       39       38       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@danielgtaylor danielgtaylor merged commit 04ea541 into main Nov 22, 2023
5 checks passed
@danielgtaylor danielgtaylor deleted the unsupported-media-type branch November 22, 2023 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant