Skip to content
This repository was archived by the owner on Aug 24, 2022. It is now read-only.

If response map has content-type set, don't override or something #53

Open
Deraen opened this issue Jan 2, 2016 · 1 comment
Open

Comments

@Deraen
Copy link
Collaborator

Deraen commented Jan 2, 2016

Sometimes user needs to return json as text/plain type (because IE9).

This works:

(-> (ok (cheshire.core/generate-string {:ping "pong"}))
    (content-type "text/plain"))

Source: https://github.com/metosin/ring-middleware-format/issues/5

@Deraen
Copy link
Collaborator Author

Deraen commented Mar 12, 2016

Somewhat related: 6f29307 and #32

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant