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

Add support for multiple and weak etags in R2 bindings #563

Merged
merged 1 commit into from
May 2, 2023

Conversation

Frederik-Baetens
Copy link
Contributor

@Frederik-Baetens Frederik-Baetens commented Apr 24, 2023

Previously users could pass http headers to Get/PutObject in the bindings, however we only accepted a single strong etag. This commit adds support for weak etags, wildcards, and multiple etags in the if-match and if-none-match http headers.

Internal PR to come soon after. Internal PR is up

@Frederik-Baetens Frederik-Baetens marked this pull request as draft April 24, 2023 16:51
@Frederik-Baetens Frederik-Baetens force-pushed the fbaetens/r2_etag_parsing branch 6 times, most recently from 944b70d to 854e253 Compare April 25, 2023 23:31
@Frederik-Baetens Frederik-Baetens marked this pull request as ready for review April 25, 2023 23:33
@Frederik-Baetens Frederik-Baetens force-pushed the fbaetens/r2_etag_parsing branch 3 times, most recently from 42b339a to 5541015 Compare April 28, 2023 02:30
@Frederik-Baetens Frederik-Baetens force-pushed the fbaetens/r2_etag_parsing branch 2 times, most recently from 5f6f271 to 6f0002c Compare April 28, 2023 19:55
Previously users could pass http headers to Get/PutObject in the
bindings, however we only accepted a single strong etag.
This commit adds support for weak etags, wildcards, and multiple etags
in the if-match and if-none-match http headers.
@Frederik-Baetens Frederik-Baetens force-pushed the fbaetens/r2_etag_parsing branch from 6f0002c to 281eacc Compare May 1, 2023 21:21
@jasnell jasnell merged commit 235f839 into cloudflare:main May 2, 2023
mrbbot added a commit to cloudflare/miniflare that referenced this pull request May 12, 2023
mrbbot added a commit to cloudflare/miniflare that referenced this pull request May 12, 2023
mrbbot added a commit to cloudflare/miniflare that referenced this pull request May 15, 2023
mrbbot added a commit to cloudflare/workers-sdk that referenced this pull request Oct 31, 2023
mrbbot added a commit to cloudflare/workers-sdk that referenced this pull request Nov 1, 2023
mrbbot added a commit to cloudflare/workers-sdk that referenced this pull request Nov 1, 2023
mrbbot added a commit to cloudflare/workers-sdk that referenced this pull request Nov 1, 2023
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