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

http: handle weak etags on comparisons #2629

Merged
merged 1 commit into from
Feb 14, 2022
Merged

Conversation

tonistiigi
Copy link
Member

fixes #2420

When a server returns a weak etag, the prefix can
cause a mismatch on a direct comparison with the old value.

@shatilov-diman

Signed-off-by: Tonis Tiigi tonistiigi@gmail.com

When server returns a weak etag, the prefix can
cause a mismatch on direct comparison with old value.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@tonistiigi tonistiigi added this to the v0.10.0 milestone Feb 14, 2022
Copy link
Collaborator

@tiborvass tiborvass left a comment

Choose a reason for hiding this comment

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

Didn't test but looks good, and TIL about weak ETags.

@tonistiigi tonistiigi merged commit 08bbd66 into moby:master Feb 14, 2022
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.

ADD from oauth+url fails with 'invalid not-modified ETag'
2 participants