Not possible to modify content-type?
Open
- Dominant language
- Clojure
- Stars
- 304
- Forks
- 69
- PR merge metrics
- No merged PRs in 30d
Description
I'm using Buddy with Basic Auth and the `api-defaults` Ring middleware. The Unauthorized response gets a `Content-Type` of `octet-stream`. In a (Safari) browser, this results in an empty file being downloaded on Esc from the Basic Auth dialog.
I'm looking for a way to set `Content-Type` to say `text/plain`, but without having to re-create the same response as Buddy Auth. The only solution now seems to be to create a full response myself in the `:on-error` function.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.