Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

No HTTP version in request

$
0
0
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

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>