httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43882] - Multiple Transfer-Encodings in requests handled improperly
Date Sat, 17 Nov 2007 04:58:21 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43882>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43882





------- Additional Comments From bjoern@hoehrmann.de  2007-11-16 20:58 -------
>From the latest version:

            /* RFC2616 allows qualifiers, so use strncasecmp */
            if (!strncasecmp(tenc, "chunked", 7) && !ap_strchr_c(tenc, ',')) {
                ctx->state = BODY_CHUNK;
            }
            else {
                /* Something that isn't in HTTP, unless some future
                 * edition defines new transfer ecodings, is unsupported.
                 */

I am a bit worried, I am unsure what "qualifiers" refers to and the code below 
seems to match on "Transfer-Encoding: chunkedfoo" which it should not. And the 
original example "Transfer-Encoding: gzip,chunked" is "in HTTP", Apache just 
does not support it. So shouldn't this be something like

            if (!strcasecmp(tenc, "chunked")) {
                ctx->state = BODY_CHUNK;
            }
            else {
                /* Other Transfer-Encodings are not implemented */


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message