Skip to content
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

POST with empty body results in error #8

Open
srekke opened this issue Jun 10, 2015 · 0 comments
Open

POST with empty body results in error #8

srekke opened this issue Jun 10, 2015 · 0 comments

Comments

@srekke
Copy link

srekke commented Jun 10, 2015

I encountered an error when trying to proxy a POST without body, because in that case the Content-Length is not being set:

12:02:54 web.1 | [Rack::StreamingProxy] Parent process 62926 forked a child process 62927.
12:02:54 web.1 | [Rack::StreamingProxy] Child starting request to http://127.0.0.1:3600/messages/29/read.json
12:02:54 web.1 | [Rack::StreamingProxy] Child process 62927 passing on ArgumentError: Content-Length not given and Transfer-Encoding is not `chunked'
12:02:54 web.1 | [Rack::StreamingProxy] Child process 62927 closing connection.
12:02:54 web.1 | [Rack::StreamingProxy] Parent received unexpected nil status!
12:02:54 web.1 | [Rack::StreamingProxy] Child process 62927 exiting.
12:02:54 web.1 | [Rack::StreamingProxy] Parent process 62926 waiting for child process 62927 to exit.
12:02:54 web.1 | App 62909 stderr: Rack::StreamingProxy::UnknownError

Thank you for this middleware by the way. :)
Best regards,
Steven

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant