You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2002/08/23 21:21:47 UTC

DO NOT REPLY [Bug 11988] New: - force-response-1.0 ingored if request uses HTTP/1.1

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11988>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11988

force-response-1.0 ingored if request uses HTTP/1.1

           Summary: force-response-1.0 ingored if request uses HTTP/1.1
           Product: Apache httpd-1.3
           Version: 1.3.26
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: mike@mk-sys.cz


In file src/main/http_protocol.c, function ap_basic_http_header (line 1549) one
can find the following test:

    if (r->proto_num == HTTP_VERSION(1,0)
       && ap_table_get(r->subprocess_env, "force-response-1.0")) {

which means force-response-1.0 is effective only if request was done with
HTTP/1.0. However, force-response-1.0 should force response in HTTP/1.0 even if
request used HTTP/1.1. In my opinion this command should be changed to

    if (r->proto_num >= HTTP_VERSION(1,0)
       && ap_table_get(r->subprocess_env, "force-response-1.0")) {

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org