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 content type validation when charset is provided #312

Merged
merged 1 commit into from
May 1, 2017

Conversation

jamesls
Copy link
Member

@jamesls jamesls commented Apr 28, 2017

The content types matching should only take into account the
type and subtype, not any of the content type parameters.

Content-Type grammar: https://tools.ietf.org/html/rfc7231#section-3.1.1.1
Fixes #185.

The content types matching should only take into account the
type and subtype, not any of the content type parameters.

Fixes aws#185.
@codecov-io
Copy link

Codecov Report

Merging #312 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #312      +/-   ##
==========================================
+ Coverage   87.32%   87.35%   +0.02%     
==========================================
  Files          19       19              
  Lines        1815     1819       +4     
  Branches      211      212       +1     
==========================================
+ Hits         1585     1589       +4     
  Misses        178      178              
  Partials       52       52
Impacted Files Coverage Δ
chalice/app.py 95.26% <100%> (+0.09%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5bb2239...a5946cf. Read the comment docs.

@jamesls jamesls merged commit a5946cf into aws:master May 1, 2017
jamesls added a commit that referenced this pull request May 1, 2017
Merges #312

* content-header-fix:
  Fix content type validation when charset is provided
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.

3 participants