Skip to content

Headers should be lower-cased #35

Closed
@opqdonut

Description

@opqdonut

Currently, ring-http-response uses header names like "Content-Type". However, the ring spec defines that headers should be lower-cased: https://github.com/ring-clojure/ring/blob/master/SPEC.md#headers-1

This is important in case there are middleware in the pipeline that expect to be able to parse eg. the content-type header, and are looking for it under the "content-type" name.

I think we should label this fix as a breaking change, since somebody might've been relying on the exact naming of the headers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions