dakrone / clj-http

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

HEAD requests shouldn't discard body (in the request). #614

Closed AustinHaas-cisco closed 2 years ago

AustinHaas-cisco commented 2 years ago

I had an issue with making HEAD requests because the body was being discarded.

I think HEAD needs a proxy-head-with-body implementation, like GET.

https://github.com/dakrone/clj-http/blob/3.x/src/clj_http/core.clj#L416