dakrone / clj-http

An idiomatic clojure http client wrapping the apache client. Officially supported version.
http://clojars.org/clj-http
MIT License
1.78k stars 408 forks source link

Handle quoted parameter values in content type #573

Closed posobin closed 3 years ago

posobin commented 3 years ago

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.