technomancy / clojure-http-client

An HTTP client for Clojure (DEPRECATED)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

doesn't accept multiple Set-Cookie headers

tomjack opened this issue · comments

Servers might send multiple Set-Cookie headers, but clojure-http-client only takes the first (http://github.com/technomancy/clojure-http-client/blob/7b9715e2fa038369a65fed89011471f705dd537b/src/clojure/http/client.clj#L66)

This might apply to other headers, too, I suppose, but I ran into it because the server I was working with set multiple Set-Cookie headers. I'm not sure about the best way to solve this. I had line 66 above use (seq v) instead of just v, but this will screw up anyone currently accessing headers as just values.

Closing out all clojure-http-client issues in hopes that folks will switch to clj-http.