http: join repeated headers with a comma
commitb20dca2f1ab4b419bf496fb3212ce424b529ac2b
authorEric Wong <normalperson@yhbt.net>
Sun, 9 Aug 2009 11:07:15 +0000 (9 04:07 -0700)
committerEric Wong <normalperson@yhbt.net>
Sun, 9 Aug 2009 11:10:54 +0000 (9 04:10 -0700)
tree71c0dd711bdf383ebc07ca87e7239cc83517c451
parent91150f18c4c7fe6ee912bb835ecaea001c322d30
http: join repeated headers with a comma

Since Rack requires a Hash object, this is joined in in
accordance with rfc2616, section 4.2[1].  Of course, it's up to
the framework or application to handle such requests.

I could optimize this to avoid creating a single garbage
String object, but I don't think it's common enough to
worry about...

[1] - http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2
ext/unicorn_http/unicorn_http.rl
test/unit/test_http_parser_ng.rb