Closed graebm closed 1 year ago
Base: 79.29% // Head: 79.29% // Decreases project coverage by -0.00%
:warning:
Coverage data is based on head (
72ef396
) compared to base (69b952e
). Patch coverage: 91.93% of modified lines in pull request are covered.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Issue:
Our one helper function for querying header values isn't great. It works like this:
This does not help us query headers with comma-separated values, which may be split across multiple entries.
Also, it's vulnerable to maliciously constructed headers (i.e. has multiple "Content-Length" entries).
Description of changes:
aws_http_headers_get_comma_separated()
: New function for querying headers with comma-separated values.aws_http_headers_get_single()
: New function explicitly for querying headers that should not occur multiple times.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.