-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
I ran into an issue trying to update webmachine-test to support cookie sessions (ie, keeping track of all cookies set by the server and automatically responding with them to emulate what browsers do on multi-request tests). I assumed that, at some point in Webmachine's core logic, it would be converting the Set-Cookie header array to a string. It looks like that isn't the case...instead, the adapters appear to handle it as a special case.
Would it be better if set_cookie only worked with strings, and always just concatenated new cookies to the string? Or is there some reason why special handling is done in the adapters (
| cookies = [response.headers['Set-Cookie'] || []].flatten |
Metadata
Metadata
Assignees
Labels
No labels