-
Notifications
You must be signed in to change notification settings - Fork 212
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
Can't locate object method "seek" ... if Content-Type header is omitted #655
Comments
seems to be a Dancer bug and should be reported there. |
thank you for the pointer. -> PerlDancer/Dancer2#1566 |
actually, re-reading the stacktrace the error does occur inside Plack. it seems you're using Apache mod_perl2 and i assume the error won't happen in a non mod_perl environment. Which version of mod_perl are you using? |
|
this is probably a bug in Plack::Handler::Apache2 but I personally haven't touched mod_perl2 for quite a while and have no resource available to look into fixing it. if someone can take a look and send a patch i can happily review and merge it. |
I think this is a bug in Plack::Request or HTTP::Entity::Parser. Plack::Handler::Apache2 provides a Plack::Request then assumes it can call |
ah that sounds about right - can anyone supply a patch for that? :) |
Does it seem better to have Plack::Request cope with a non-buffered input after attempting to parse the body, or should HTTP::Entity::Parser always set up |
i think i prefer fixing HTTP::Entity::Parser to behave in a more consistent manner. @kazeburo ? |
The fix for this has been released to CPAN in 1.0048. |
Does that handle e.g. CONTENT_TYPE=1 somewhat gracefully? |
i don't know what you mean but it's handled the same as when |
curl -X POST -d '{}' https://dtdev:8080/v1/dnscheck
this works because curl sends a default Content-Type header but if I make curl omit the default header I get this error.
curl -X POST -d '{}' https://dtdev:8080/v1/dnscheck -H 'Content-Type:'
The text was updated successfully, but these errors were encountered: