Skip to content

Commit

Permalink
no need for open connections
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcgrana committed Aug 7, 2010
1 parent c246279 commit 21fd930
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/clj_http/core.clj
Expand Up @@ -38,6 +38,7 @@
(str content-type "; charset=" character-encoding)))
(if (and content-type (not character-encoding))
(.addHeader http-req "Content-Type" content-type))
(.addHeader http-req "Connection" "close")
(if body
(let [http-body (ByteArrayEntity. body)]
(.setEntity #^HttpEntityEnclosingRequest http-req http-body)))
Expand Down

0 comments on commit 21fd930

Please sign in to comment.