Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Failing to parse query parameters when using a custom host name #3
I have recently discovered something that quite amazed me: Try setting a new Rails 3 application, create a custom name for your localhost (let's say, "diddy.com"), install mongrel as gem, and then create an action that does this:
then just do: diddy.com:3000/action?page=2
basically, i'm not getting the page parameter output, query parameters are always being parsed out all the time, so that means doing that is the same as doing diddy.com:3000/action . If I use localhost as host, it works fine.
I've currently "hacked" the mongrel.rb file in order for it to work. So, at the line 128 of mongrel.db:
this is just a temporary hack that works the problem around, I guess. Basically, the HttpParser (http11.c) is parsing it wrong when the host is a custom one.
What do you think? Do you get the same issue?