http11: set SERVER_NAME env regardless of Host: header
commit2ff0f8ae66623424dd64b865e7415dd007ade280
authorEric Wong <normalperson@yhbt.net>
Thu, 19 Feb 2009 22:40:37 +0000 (19 14:40 -0800)
committerEric Wong <normalperson@yhbt.net>
Fri, 20 Feb 2009 08:00:28 +0000 (20 00:00 -0800)
tree53f19e4571323dba9ad3094de0fd408d750ef860
parentf32cac1cc89aed460fae99689ae7e5dd806f7682
http11: set SERVER_NAME env regardless of Host: header

The Rack spec requires it.  So we'll just set it to "localhost"
if we're dealing with HTTP/1.0 clients that omit the "Host:"
header.
ext/http11/http11.c