http11: make parser obey HTTP_HOST with empty port
commitba916e542a46686185cb701e87a98a617c0f4078
authorEric Wong <normalperson@yhbt.net>
Tue, 21 Apr 2009 18:14:49 +0000 (21 11:14 -0700)
committerEric Wong <normalperson@yhbt.net>
Tue, 21 Apr 2009 18:16:33 +0000 (21 11:16 -0700)
treefd2930b9f9649298146c07a9f9e08ce905f8b6e4
parentb5ff27899a3caf8a66be1d024e727ac166dd3b3f
http11: make parser obey HTTP_HOST with empty port

This means "Host: foo-bar:" (trailing colon) will assume
server_port is 80, not a blank string.
ext/unicorn/http11/http11.c
test/unit/test_http_parser.rb