mikeal/request — pull request #246 by jeromegn (2012-04-30 17:49:26+00:00)
Title: Fixing the set-cookie header

Sometimes the "set-cookie" response header wasn't parsed as an Array. This had the effect of throwing an error about the cookie string not having the forEach method.

I'm honestly not sure how to write a test for that with the current way tests are made. I'm also unsure where that header was converted to an Array in the first place.

This is tentative at best. I can't claim to know the intricacies of Request, but I'm willing to learn them if you point me in the right direction.