httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <trawi...@bellsouth.net>
Subject Re: Funny stuff with content negotiation
Date Thu, 25 Jan 2001 15:20:47 GMT
"Bill Stoddard" <bill@wstoddard.com> writes:

> Looking into this now but I suspect Ryan, Greg or Jeff can id the problem in a couple
of minutes.
> Send in a request to 127.0.0.1 and the negotiated content returned is index.html.en.
Notice the
> duplicate set of headers beginning with Connection: Keep-Alive.

The Content-Type header field is FUBAR:

Breakpoint 4, form_header_field (h=0xbfffb918,
    fieldname=0x80ea996 "Content-Type",
    fieldval=0x81585d4 "cept-Ranges: bytes\r\nContent-Length: 1311\r\nConnection: close\r\n")
at http_protocol.c:1791
1791        headfield = apr_pstrcat(h->r->pool, fieldname, ": ", fieldval, CRLF, NULL);


This explains at least part of the bogosity.

Uh, oh... Expires is messed up too.

Breakpoint 4, form_header_field (h=0xbfffb918, fieldname=0x80ea9e5 "Expires",
    fieldval=0x81585f4 "th: 1311\r\nConnection: close\r\nContent-Type: cept-Ranges: bytes\r\nContent-Length:
1311\r\nConnection: close\r\n\r\nContent-Language: en\r\n") at http_protocol.c:1791
1791        headfield = apr_pstrcat(h->r->pool, fieldname, ": ", fieldval, CRLF, NULL);
(gdb)                                   

Time to back up a bit :)

Does anybody have a gdb macro to dump a table?
-- 
Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Mime
View raw message