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

Comments

Projects
None yet
1 participant
@tchaloupka
Copy link
Contributor

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

Merge pull request #2269 from tchaloupka/restbody
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
You can’t perform that action at this time.