Permalink
Browse files

accept cookie values containing "="

  • Loading branch information...
1 parent 7b9715e commit f416aaa1909491af3f5e1beb3f320567a23766b5 @tomjack tomjack committed Aug 31, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/clojure/http/client.clj
@@ -72,7 +72,7 @@ by a server."
(when cookie-string
(into {}
(for [cookie (.split cookie-string ";")]
- (let [keyval (map #(.trim %) (.split cookie "="))]
+ (let [keyval (map #(.trim %) (.split cookie "=" 2))]
[(first keyval) (second keyval)])))))
(defn- create-cookie-string

0 comments on commit f416aaa

Please sign in to comment.