The following request fails for me: (clj-http.client/get "https://facebook.com" {:as :reader}) with the unrecognized encoding exception. That's because the content type header for facebook is set to text/html; charset="utf-8", and clj-http doesn't support quoted strings for charset. RFC 2616 allows quoted strings there, this PR fixes that. I added one test for this case and ran all the tests with lein all test :all.
The following request fails for me:
(clj-http.client/get "https://facebook.com" {:as :reader})
with the unrecognized encoding exception. That's because the content type header for facebook is set totext/html; charset="utf-8"
, and clj-http doesn't support quoted strings for charset. RFC 2616 allows quoted strings there, this PR fixes that. I added one test for this case and ran all the tests withlein all test :all
.