Skip to content

API Gateway Proxy: headers are case sensitive #117

Open
@cloudlena

Description

@cloudlena

Accessing the headers from an APIGatewayProxyRequest event as request.Headers["Authorization"] makes them case sensitive. HTTP headers are case insensitive by definition. I think it would make sense to have a getter method for them like the one in net/http where case sensitivity would be handled.

- request.Headers["Authorization"]
+ request.Header.Get("Authorization")

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