http: parser handles IPv6 bracketed IP hostnames
commitd140e7b1ff44b06bc54c2b790d06e9c7325503fe
authorEric Wong <normalperson@yhbt.net>
Wed, 2 Feb 2011 22:45:57 +0000 (2 14:45 -0800)
committerEric Wong <normalperson@yhbt.net>
Wed, 2 Feb 2011 22:45:57 +0000 (2 14:45 -0800)
tree0985a4e7195bb8973a6d098cef3831ea63801db4
parent24f8ef5f385e38954a5582fb2e8cd9d12fbf7d20
http: parser handles IPv6 bracketed IP hostnames

Just in case we have people that don't use DNS, we can support
folks who enter ugly IPv6 addresses...

IPv6 uses brackets around the address to avoid confusing
the colons used in the address with the colon used to denote
the TCP port number in URIs.
ext/unicorn_http/unicorn_http.rl
ext/unicorn_http/unicorn_http_common.rl
test/unit/test_http_parser.rb