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

The :redirect-strategy doesn't seem to work for PUT and PATCH HTTP methods #641

Open Terbiy opened 9 months ago

Terbiy commented 9 months ago

In my project, I use the Slash handler provided by Reitit library to remove the trailing / of any URL. This works with the help of HTTP 308 redirect. When trying to do the request using the PATCH HTTP method, I discovered that the :redirect-strategy setting is ignored. I receive the same request result with 308 status as if there was no redirect strategy set. The same happens for the PUT request. However, POST request to the very same address is handled correctly.