gorillalabs / hato

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

Make sure we're not having troubles with headers #3

Open chrisbetz opened 4 years ago

chrisbetz commented 4 years ago

I'm not sure multiple headers are handled correctly:

in hato.client/response-map this might cause trouble, and I did not check other places.

:headers     (->> (.map (.headers response))
                     (map (fn [[k v]] (if (> (count v) 1) [k v] [k (first v)])))
                     (into {}))