Welcome! Log In Create A New Profile

Advanced

No HTTP version in request

Matthieu Tourne
March 19, 2013 09:48PM
I just found an interesting behavior in Nginx while looking at a reqeust
that was causing an error in my code.

For a request with no HTTP/xx version, Nginx will return no HTTP response
headers.

From what I gathered, this is just Nginx defaulting to HTTP/0.9, where no
headers are expected. And actually doing the right thing here.

But shouldn't $server_protocol default to HTTP/0.9 in that case, instead of
being an empty string ?
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

No HTTP version in request

Matthieu Tourne March 19, 2013 09:48PM

Re: No HTTP version in request

Igor Sysoev March 20, 2013 01:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 189
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready