I have an nginx 1.0.6 server set up in front of a Ruby on Rails application using Passenger.
I have noticed some strange behaviour when making POST requests. Consider this little code snippet:
I make two identical POST request - the only difference is, that in the last one, the actual post data has 1 more character than the Content-Length specifies (I've inserted a trailing blank).
The first request is responded to fine, but the last one just hangs until my client times out.
Is there any way to configure nginx, so that it can accept both requests? I have no way of making the client behave correctly.
UPDATE: I have just tried to make the same test against another virtual host on the same nginx server, where the backend is PHP. Here it works correctly.
So it is not nginx but Passenger, that is the culprit - still if anyone has had the same problem, please let me know.