Skip to content
This repository was archived by the owner on Aug 24, 2022. It is now read-only.
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

@Deraen

Description

@Deraen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions