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

Fixes #2835 Process Accept header MIME types in case-insensitive way #2861

Merged
merged 1 commit into from Jun 20, 2019

Conversation

yuwaMSFT2
Copy link
Contributor

Use mime.ParseMediaType to parse the media types in Accept header in manifest request. Ignore the failed ones.

Signed-off-by: Yu Wang yuwa@microsoft.com

…nsitive way

Use mime.ParseMediaType to parse the media types in Accept header in manifest request. Ignore the failed ones.

Signed-off-by: Yu Wang <yuwa@microsoft.com>
@yuwaMSFT2
Copy link
Contributor Author

@manishtomar can you take a look? Thanks!

@codecov
Copy link

codecov bot commented Feb 21, 2019

Codecov Report

Merging #2861 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2861      +/-   ##
==========================================
- Coverage   60.45%   60.42%   -0.03%     
==========================================
  Files         102      102              
  Lines        8001     8000       -1     
==========================================
- Hits         4837     4834       -3     
- Misses       2517     2518       +1     
- Partials      647      648       +1
Flag Coverage Δ
#linux 60.42% <0%> (-0.03%) ⬇️
Impacted Files Coverage Δ
registry/handlers/manifests.go 52.82% <0%> (-0.82%) ⬇️

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 0d3efad...a683c7c. Read the comment docs.

@yuwaMSFT2
Copy link
Contributor Author

/cc @sajayantony @sivagms

Copy link
Contributor

@caervs caervs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

For reference see RFC 6838 section 4.2

@yuwaMSFT2
Copy link
Contributor Author

@caervs @manishtomar can you help to merge? Thanks!

@caervs caervs merged commit 0c394fd into distribution:master Jun 20, 2019
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.

None yet

2 participants