We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbbf102 commit 4c32adeCopy full SHA for 4c32ade
src/clojure/http/client.clj
@@ -112,10 +112,10 @@ by a server."
112
"GET")))]
113
(.setRequestMethod connection method)
114
115
- (doseq [header (conj default-headers (or headers {}))]
116
- (.setRequestProperty connection
117
- (first header)
118
- (second header)))
+ (doseq [[header value] (conj default-headers (or headers {}))]
+ ;; Treat Cookie specially -- see below.
+ (when (not (= header "Cookie"))
+ (.setRequestProperty connection header value)))
119
120
(when (and cookies (not (empty? cookies)))
121
(.setRequestProperty connection
0 commit comments