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

REST server writes body on 304 Not Modified (and others too) #2268

Closed
tchaloupka opened this issue Feb 22, 2019 · 0 comments
Closed

REST server writes body on 304 Not Modified (and others too) #2268

tchaloupka opened this issue Feb 22, 2019 · 0 comments

Comments

@tchaloupka
Copy link
Contributor

Per RFC: https://tools.ietf.org/html/rfc2616#section-4.3

All 1xx (informational), 204 (no content), and 304 (not modified) responses MUST NOT include a message-body.

But it actually returns for example:

Content-Length: 32

{
  "statusMessage": "Not Modified"
}
dlang-bot added a commit that referenced this issue Feb 22, 2019
Fix #2268 - REST - don't write response body for some statuses
merged-on-behalf-of: Sönke Ludwig <[email protected]>
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

No branches or pull requests

1 participant