chrisk / fakeweb

Ruby test helper for injecting fake responses to web requests
MIT License
1.09k stars 134 forks source link

Multiple values for the same response header are not treated properly #17

Closed myronmarston closed 14 years ago

myronmarston commented 14 years ago

Mechanize expects response.get_fields('Set-Cookie') to return an array of strings, but the current version of fakeweb returns an array-of-an-array of strings when you try to set multiple values for the set-cookie header using :set_cookie = ['val1', 'val2'].

I've got a commit that solves this issue.

See this issue in VCR for more context and info.

chrisk commented 14 years ago

Merged in 058b1221110f202d7be67cdf54aa0051c0ea91ee. Thanks!