-
Notifications
You must be signed in to change notification settings - Fork 15
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
psgi.input being undef causes exceptions elsewhere #23
Comments
Just to be clear, I am seeing this when I issue a POST request with an empty body (admittedly somewhat of an edge case. Here is a test-case:
When it's running, hit it with curl:
And you'll see the error:
|
Thanks for the report. Try commenting out lines 1579 and 1582 in |
Thanks! Yes that fixes it (you have to comment out 1583 and 1585 as well so it compiles). I guess this adds some overhead to GET requests since even then it will create an empty stream. I'm not sure if that's important? |
This change caused the tests to fail in the latest version. However, with Would it be appropriate to revert these changes, so that Feersum can be installed without failing the graceful shutdown unit test? And perhaps mandate HTTP::Entity::Parser 0.20 as a dependency? I can send a PR, if the solution works for you :) |
That works, please send the PR and looking forward to a new release with your contribution. |
Thanks @audreyt :) The remaining test failures seem to only affect the BSDs... If I can diagnose the issue, I'll send another PR. |
In the docs it says
Which makes sense, except it causes HTTP::Entity::Parser to throw an exception:
I opened an issue there too: kazeburo/HTTP-Entity-Parser#6
I'm not exactly clear on the PSGI spec's take on this, but it seems to say it must be an IO::Handle-like object?
Thanks,
Doug
The text was updated successfully, but these errors were encountered: