-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Body of 412 responses not sent since ETag handling was added #1231
Comments
This is currently intentional because this is a side effect of how conditional requests are implemented. |
Since Werkzeug 0.14, the body of 412 responses if not sent pallets/werkzeug#1231
Any update on this? I had to skip some requirements of a spec because of this. Edited: |
I did not find a good way to fix this yet. The main issue is that from what I understand we must not send a response for precondition failed when triggered by an if-match. |
The current behavior is not compatible with w3c https status code standard (https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html) - which allow sending a body with 412 response code. |
We can just generally send bodies again :-/ |
@mitsuhiko Any ETA for that ? |
Not atm. If someone sends a pr it can be faster. |
@lafrech doesn't indicate why they think 412 should have a body. The page linked by @chenyosef-stratoscale doesn't say anything about the body. @eruvanos doesn't say what their spec is or why it requires a body, or if that spec is compliant with the HTTP spec. @mitsuhiko says that If-Match can't send a body, but that doesn't appear to be true according to RFC 7232. I'll merge the PR since nothing seems to disallow it, but the discussion on this issue isn't very clear. 😕 |
I would just merge #1255. I'm not sure myself what's correct or not but since it broke people's stuff i would propose to undo this. |
Yeah, I'm rebasing and adding a changelog now. |
This comment has been minimized.
This comment has been minimized.
Fixes "no content on 412" issue (pallets/werkzeug#1231)
On HTTP error, the response includes a message such as:
Since Etag handling was added, 412 error response does not include this message anymore.
Below is the test script I used.
Feeding it to
git bisect
pointed me to 092e59a.The text was updated successfully, but these errors were encountered: