diff options
author | Eric Wong <e@80x24.org> | 2016-12-14 21:58:15 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-12-14 21:58:54 +0000 |
commit | bcf2698bcc90f346b145538e53d0d61bcceb2e48 (patch) | |
tree | 76ad49e357c2ef0474b639f25df057fd73c87d09 /SPEC | |
parent | 9e73bd1ae7b5df937302a148ab99bf3be12eb063 (diff) | |
download | rack-bcf2698bcc90f346b145538e53d0d61bcceb2e48.tar.gz |
Revert "Add 205 Reset Content to the list of statuses without a message body" rfc7231-sec6.3.6-205
RFC 7231, section 6.3.5 gives three possible options for what a server MUST do when sending a 205 status code: > Since the 205 status code implies that no additional content will be > provided, a server MUST NOT generate a payload in a 205 response. In > other words, a server MUST do one of the following for a 205 > response: a) indicate a zero-length body for the response by > including a Content-Length header field with a value of 0; b) > indicate a zero-length payload for the response by including a > Transfer-Encoding header field with a value of chunked and a message > body consisting of a single chunk of zero-length; or, c) close the > connection immediately after sending the blank line terminating the > header section. rack itself has no control over c), but should leave options a) and b) available for middleware and application authors. https://tools.ietf.org/html/rfc7231#section-6.3.6 The older RFC 2616 text was vague and not specific about what a server should do: https://tools.ietf.org/html/rfc2616#section-10.2.6 I noticed this from Plack: https://metacpan.org/pod/Plack::Util This reverts commit 2c5b076aaba6c83ffce8c6c2b5c49085c1abb5a5.
Diffstat (limited to 'SPEC')
-rw-r--r-- | SPEC | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -237,10 +237,10 @@ consisting of lines (for multiple header values, e.g. multiple The lines must not contain characters below 037. === The Content-Type There must not be a <tt>Content-Type</tt>, when the +Status+ is 1xx, -204, 205 or 304. +204 or 304. === The Content-Length There must not be a <tt>Content-Length</tt> header when the -+Status+ is 1xx, 204, 205 or 304. ++Status+ is 1xx, 204 or 304. === The Body The Body must respond to +each+ and must only yield String values. |