Permalink
Browse files

add default content-type

  • Loading branch information...
1 parent 9547d54 commit 32d0b296cf8a4af451eea9f007b1971c5368f360 @ztellman committed Aug 27, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/aleph/http/client_middleware.clj
@@ -78,6 +78,7 @@
(client (-> req
(dissoc :form-params)
(assoc
+ :content-type content-type
:body (if (and (= content-type "application/json") auto-encode?)
(formats/encode-json->bytes form-params)
(generate-query-string form-params)))))

0 comments on commit 32d0b29

Please sign in to comment.