Skip to content

responseHeaders's runtime representation isn't necessarily a StrMap String #4

@Thimoteus

Description

@Thimoteus

When running tests for one of my libraries, I tried to print the responseHeaders from a Response and got the following:

Response headers:

TypeError: s.replace is not a function
    at exports.showStringImpl (/home/thimotron/Programming/purescript-simple-request/output/Prelude/foreign.js:23
1:19)

I tracked it down to the fact that the responseHeaders in question had a "set-cookie" key with an Array String value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions