rubiii/savon — Issue #257: Different cookies in later requests overwrite first cookie
Author: kjg
Created: 2012-01-25 21:20:53+00:00
State: open

When I make multiple requests to a service the cookie set in the first request is overwritten by different cookies in subsequent requests even through the subsequent cookies have different names.

It seems that the problem is this line https://github.com/rubiii/savon/blob/master/lib/savon/client.rb#L94 where the entire cookie header is overwritten when a new Set-Cookie header is detected

def set_cookie(headers)
http.headers["Cookie"] = headers["Set-Cookie"] if headers["Set-Cookie"]
end