Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header "Cookie" can erroneously be nil (not missing) #56

Merged
merged 1 commit into from
Jul 1, 2012

Conversation

DylanLacey
Copy link
Contributor

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.

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.
@rubiii rubiii merged commit 168e6fb into savonrb:master Jul 1, 2012
@rubiii
Copy link
Contributor

rubiii commented Jul 1, 2012

released v1.1.1. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants