Skip to content

Headers returned from function isn't lower cased #539

@LinusU

Description

@LinusU

Headers returned from a mock function isn't lower cased, compare the two following examples.

scope.head('/').reply(200, '', { 'X-Test': 'Hello' })
scope.head('/').reply(() => [200, '', { 'X-Test': 'Hello' }])

The first one correctly has res.headers['x-test'] set to "Hello", the other example on the other hand still has the key capitalised.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions