Skip to content

Cannot add multiple Cookies in a response #170

Closed
@jlo2177

Description

@jlo2177

Based on the below information from "https://github.com/ring-clojure/ring/blob/master/SPEC", it appears that multiple Headers with the same name can be added. Although, I have not been able to get this to work. I did extend ArrayMap with a Map that allows duplicate name entries (which worked), but this breaks the definition of Map. Can you explain how I should format a "seq of Strings", to add multiple Set-Cookie Headers?

:headers
(Required, clojure.lang.IPersistentMap)
A Clojure map of HTTP header names to header values. These values may be
either Strings, in which case one name/value header will be sent in the
HTTP response, or a seq of Strings, in which case a name/value header will be
sent for each such String value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions