httprb / http

HTTP (The Gem! a.k.a. http.rb) - a fast Ruby HTTP client with a chainable API, streaming support, and timeouts
MIT License
3.01k stars 321 forks source link

Fix cookies extraction #694

Closed flosacca closed 3 years ago

flosacca commented 3 years ago

Follows #693.

flosacca commented 3 years ago

Sorry, I only tested the case where more than one cookies were present. The problem can be fixed by simply replacing Headers#[] with Headers#get since the latter always returns an array. I have passed CI on another branch this time.

tarcieri commented 3 years ago

Thanks!