httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <Martin.Krae...@Fujitsu-Siemens.com>
Subject Re: cvs commit: apache-1.3/src/main http_protocol.c
Date Tue, 08 Jan 2002 16:24:01 GMT
On Tue, Jan 08, 2002 at 03:09:49PM -0000, martin@apache.org wrote:
>   -
>        r->assbackwards = (ll[0] == '\0');
>        r->protocol = ap_pstrdup(r->pool, ll[0] ? ll : "HTTP/0.9");
>    
>   -    if (2 == sscanf(r->protocol, "HTTP/%u.%u", &major, &minor)
>   -      && minor < HTTP_VERSION(1,0))	/* don't allow HTTP/0.1000 */
>   -	r->proto_num = HTTP_VERSION(major, minor);
>   -    else
>   -	r->proto_num = HTTP_VERSION(1,0);
>   -
>   +    /* The following test tries to skip past the "HTTP/nn.mm"
>   +     * protocol string, collecting major=nn and minor=mm.
>   +     * ll is advanced past "HTTP/nn.mm" so that it can be checked
>   +     * for proper string termination (only valid chars: \r\n).
>   +     */
>   +    if (memcmp(ll,"HTTP/",5) == 0 && isdigit(ll[5])) {
>   +
>   +        /* Read major protocol level: */
...
Uuh. That was a mistake. I did not mean to commit this part.
Undoing in a second.

   Martin
-- 
<Martin.Kraemer@Fujitsu-Siemens.com>         |     Fujitsu Siemens
Fon: +49-89-636-46021, FAX: +49-89-636-47655 | 81730  Munich,  Germany

Mime
View raw message