puppetlabs / clj-http-client

HTTP client library wrapping Apache HttpAsyncClient
Apache License 2.0
15 stars 30 forks source link

(PE-6019) Set request body character encoding to UTF-8 #16

Closed camlow325 closed 10 years ago

camlow325 commented 10 years ago

This commit sets the character encoding for the body of a request to UTF-8. Previous code did not set a character encoding and so a default of ISO-8859-1 was implicitly used. This change assumes that UTF-8 is a more reasonable default for clients although work should be done later to make this externally configurable.

cprice404 commented 10 years ago

+1 ship it assuming the answer to my question above is "yes"

KevinCorcoran commented 10 years ago

:+1:

camlow325 commented 10 years ago

Going to rework this to be smarter about how the content-type is managed and will submit a new PR when done.