gnarroway / hato

An HTTP client for Clojure, wrapping JDK 11's HttpClient
MIT License
380 stars 27 forks source link

Handle missing content-type header in response #33

Closed oliyh closed 3 years ago

oliyh commented 3 years ago

Hi,

Thanks for making hato, I'm enjoying using it. I've added it as an implementation for martian!

When setting :as :auto if the response does not contain a Content-Type header then hato blows up trying to read the namespace of the content type keyword. This prevents that happening.

Also added a drive-by of a test assertion that was calling = with only one argument.

Cheers, Oliy

gnarroway commented 3 years ago

Thank you! released in 0.8.2