Nginx missing response header on 400 bad request

nginx does not sent the response headers but only response body on 400
bad request.

e.g.

$ nc 127.0.0.1 80
GET HTTP/1.0

400 Bad Request

400 Bad Request


nginx/0.9.1

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,193954,193954#msg-193954

On Tue, Apr 26, 2011 at 11:35:35PM -0400, xiezhenye wrote:

400 Bad Request


nginx/0.9.1

This is so called HTTP/0.9 response.
There are no headers in HTTP/0.9.

$ nc apache.org 80
GET HTTP/1.0

400 Bad Request

Bad Request

Your browser sent a request that this server could not understand.


Apache/2.3.8 (Unix) mod_ssl/2.3.8 OpenSSL/1.0.0c Server at www.apache.org Port 80


Igor S.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs