Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chrisbetz opened this issue Mar 20, 2020 · 0 comments
Open

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

chrisbetz opened this issue Mar 20, 2020 · 0 comments

Comments

@chrisbetz
Copy link

I'm not sure multiple headers are handled correctly:

  • case-insensitive
  • possiblity to have the same header (case-insensitive!!!) multiple times.

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 {}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant