Skip to content

fix: don't return 412 for if-none-match failures #321

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

Merged
merged 1 commit into from
Mar 3, 2025
Merged

Conversation

flakey5
Copy link
Member

@flakey5 flakey5 commented Mar 3, 2025

Closes nodejs/build#4030

Misinterpretation of the docs, precondition failures due to if-none-match return a 412 for unsafe http methods (aka those that modify things on the sever-side). For safe methods (GET, HEAD), they return a 304.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match

@flakey5 flakey5 force-pushed the flakey5/build-4030 branch from 93b4978 to 9fbccb3 Compare March 3, 2025 21:25
@flakey5 flakey5 merged commit c4653ed into main Mar 3, 2025
5 checks passed
@flakey5 flakey5 deleted the flakey5/build-4030 branch March 3, 2025 21:26
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.

cURL error 56 when checking for new release using precondition
2 participants