API Gateway Proxy: headers are case sensitive
Open
enhancement
- Dominant language
- Go
- Stars
- 3.8k
- Forks
- 578
- Avg merge
- 8h 18m
- Merged PRs (30d)
- 1
Description
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.
```diff
- request.Headers["Authorization"]
+ request.Header.Get("Authorization")
```
Contributor guide
Assessment
This issue has not been assessed yet.