Permalink
Browse files

Use raw cooking value when URLDecode fail.

  • Loading branch information...
1 parent ad47102 commit 613f1f310cbc419092018967059ed114ec7a283b nicoo committed Jan 16, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/clj_http/cookies.clj
View
@@ -36,7 +36,9 @@
:path (.getPath cookie)
:ports (if (.getPorts cookie) (seq (.getPorts cookie)))
:secure (.isSecure cookie)
- :value (url-decode (.getValue cookie))
+ :value (try
+ (url-decode (.getValue cookie))
+ (catch Exception _ (.getValue cookie)))
:version (.getVersion cookie)})])
(defn- to-basic-client-cookie

0 comments on commit 613f1f3

Please sign in to comment.