rubiii/httpi — pull request #56 by DylanLacey (2012-07-01 02:35:49+00:00)
Title: Header "Cookie" can erroneously be nil (not missing)

When there are no cookies, the "Cookies" key shouldn't exist. The
existing behaviour was to allow it to be nil.

initialize_http_header in module HTTPHeader (net/http.rb) iterates over
all headers. When "Cookie" is set and is nil, this method freaks out
when trying to call value.strip. If the "Cookie" header has a value of
nil, it should not be included in the headers hash.