Skip to content

Case insensitive header tests? #21

@hurrymaplelad

Description

@hurrymaplelad

Http treats headers as case-insensitive. Node normalizes headers to lowercase to make them easy to work with. I'd expect the assertion interface to be as liberal as the http spec, so I could test

    expect(response).to.have.header('Cache-Control', 'no-cache')

Would you take a PR to lowercase header names before retrieving them from node?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions