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 a9262a6 commit 64412f9Copy full SHA for 64412f9
src/clj_http/core.clj
@@ -609,7 +609,10 @@
609
(if (string? body)
610
(StringEntity. ^String body "UTF-8")
611
(ByteArrayEntity. body))))))
612
- (doseq [[header-n header-v] headers]
+ (doseq [[header-n header-v] headers
613
+ :when (or (not multipart)
614
+ (and (not= "content-type" header-n)
615
+ (not= "Content-Type" header-n)))]
616
(if (coll? header-v)
617
(doseq [header-vth header-v]
618
(.addHeader http-req header-n header-vth))
0 commit comments