-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trailing ? in URL silently fails #86
Comments
Hi @adam12 , Thank you for opening this issue. 🙏🏻 I can confirm that I can re-create the issue on my machine. It seems an edge-case issue, never cropped up in any of my use cases - thanks for discovering it 👏🏻👏🏻🙏🏻 I'll mark this as a bug and look for a solution (though I'm not sure an empty query is legal 🤔, I'm certain it should be supported). I'll keep you posted. Kindly, |
The issue was with the I'll wait for the CI and some tests before I release the fix. |
Released version 0.7.37 with the fix. 🎉 Thanks again for opening this issue 👍🏻🙏🏻 |
I was staring at the Thanks for the quick fix! 💯 👍 |
Hi Bo,
Hope all is well.
I tried to debug and submit a patch for this but I'm not 100% sure where it's occurring in the source code.
Using an incredibly simple Rack application (listed below) as an example, requests to
http://localhost:port/?
(with the trailing?
) will fail silently, returning an empty reply. If the debugging is cranked up with-V 5
then the error is logged asDEBUG (http1.c:671): HTTP parser error.
.I'm not sure if I'm even in the right area, but I dug into the internals and ended up inside the
consume_request_line
function. At a certain point, it consumes the path from the request and I wasn't able to see where it went. Theon_query
call is never reached as it returns on line 186.iodine/ext/iodine/http1_parser.c
Lines 182 to 189 in 469bdd8
Here's the example Rack application:
Cheers.
Adam
The text was updated successfully, but these errors were encountered: