The current create-cookies function assumes that the 'set-cookie' header is always a vector.
I find out that this is not always true. If the response from the server contains a single 'set-cookie', the 'set-cookie' entry in the header map will be a string instead of a vector. This generates a java exception when the create-cookies function is called.
I wrote a new test to catch this scenario and changed the 'create-cookie' function to handle it.
Disclamer: I am Clojure newbie! I hope that everything is okay!
The current create-cookies function assumes that the 'set-cookie' header is always a vector.
I find out that this is not always true. If the response from the server contains a single 'set-cookie', the 'set-cookie' entry in the header map will be a string instead of a vector. This generates a java exception when the create-cookies function is called.
I wrote a new test to catch this scenario and changed the 'create-cookie' function to handle it.
Disclamer: I am Clojure newbie! I hope that everything is okay!
Thanks for the work you put on this library.
Cesar Canassa