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

@tchaloupka tchaloupka commented Feb 22, 2019

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 dlang-bot closed this in b6e1ddc Feb 22, 2019
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 <s-ludwig@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant