Closed jetmind closed 2 years ago
Ok, I shoud have used :request-method
instead of :method
. Everything works.
Hmmm, not so fast. There's the aleph.http.client-middleware/wrap-method
in the default middleware that should fix this exact issue.
There's also a discrepancy in the keywords/docs between follow-redirects?
and follow-redirects
EDIT: nm, I forgot there's a fn that checks the option with or without the ?
The issue is that the chained fn that handles the response, reuses the original request map for some things, namely cookies and the request method, from before the request middleware was applied. After a close reading, I don't think the cookie code is impacted, but this explains why wrap-method
didn't fix it.
expected status 200