awslabs / aws-c-auth

C99 library implementation of AWS client-side authentication: standard credentials providers and signing.
Apache License 2.0
40 stars 30 forks source link

Handle empty path in `AWS_CONTAINER_CREDENTIALS_FULL_URI` #225

Closed jamesbornholt closed 7 months ago

jamesbornholt commented 7 months ago

URI paths are allowed to be empty, but for HTTP requests we need to replace empty paths with /. This fix allows examples like:

export AWS_CONTAINER_CREDENTIALS_FULL_URI=http://127.0.0.1:9911

to work.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.