This repository was archived by the owner on May 21, 2025. It is now read-only.
This repository was archived by the owner on May 21, 2025. It is now read-only.
Request for overriding DefaultServerAddress #13
Closed
Description
The proxied http.Request
URL will currently always start with https://aws-serverless-go-api.com
because of the way the the URL is created here: https://github.com/awslabs/aws-lambda-go-api-proxy/blob/master/core/request.go#L137
This is an issue when API Gateway is configured to use a custom domain. For instance Gorrila MUX will redirect the client to a 'clean' version of the URL path. It makes use of the request URL to construct the redirect URL in de HTTP response: https://github.com/gorilla/mux/blob/master/mux.go#L125-L137
Could you please create the ability to override the server address? Another option would be to use the value of request.host
in the API Gateway Proxy Request Event.
Metadata
Metadata
Assignees
Labels
No labels