https://bz.apache.org/bugzilla/show_bug.cgi?id=69186

            Bug ID: 69186
           Summary: Apache httpd generates body for 205 status code
           Product: Apache httpd-2
           Version: 2.4.61
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

According to RFC 9110 section 15.3.6, "a server MUST NOT generate content in a
205 response". However, Apache generates content in this case. Examples:

Redirect 205 /

or

RewriteRule ^ - [R=205]

produce an HTML response that looks like the standard Internal Server Error
message (while the status code is indeed 205).

This is also the case for CGI scripts like this:

#!/bin/bash
echo -e "Status: 205\n"
echo "Content"


Instead, Apache should behave as in the 204 case, i.e. no content and no
corresponding headers (Content-Type, Content-Length etc.) served.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to