Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

HTTP_HOST parse error

#94

HTTP_HOST seems to get split into SERVER_NAME and SERVER_PORT on the first colon. This breaks literal IPv6 addresses.

For example "[::1]:4567" is split into "[" and ":1]:4567" which is obviously wrong.

The problem seems to be somewhere in thin_parser, but I did not manage to find the exact location.

A quick test with mongrel showed exactly the same problem. Is this the same code?

Reported by Michael Schnupp · January 24th, 2009 @ 10:12 PM

State: hold
Milestone: Future
Assigned to: macournoyer macournoyer

Activity

  1. macournoyer
    macournoyer
    • Tag set to ipv6

    @Michael yes, the parser is the same code as Mongrel.

    Here's the code that does the magic: http://github.com/macournoyer/th...

    You need to use IPv6 address?

    January 26th, 2009 @ 10:00 AM

  2. macournoyer
    macournoyer
    • State changed from new to hold

    March 16th, 2009 @ 08:55 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.