10000 APIGW: fix AWS_PROXY payload with Custom Domains by bentsku · Pull Request #12296 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content

APIGW: fix AWS_PROXY payload with Custom Domains #12296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ def create_context_variables(context: RestApiInvocationContext) -> ContextVariab
domain_prefix = domain_name.split(".")[0]
now = datetime.datetime.now()

# TODO: verify which values needs to explicitly have None set
context_variables = ContextVariables(
accountId=context.account_id,
apiId=context.api_id,
Expand Down
A0E2
Original file line number Diff line number Diff line change
Expand Up @@ -518,9 +518,13 @@ def create_lambda_input_event(self, context: RestApiInvocationContext) -> Lambda
invocation_req: InvocationRequest = context.invocation_request
integration_req: IntegrationRequest = context.integration_request

# TODO: binary support of APIGW
body, is_b64_encoded = self._format_body(integration_req["body"])

if context.base_path:
path = context.context_variables["path"]
else:
path = invocation_req["path"]

input_event = LambdaInputEvent(
headers=self._format_headers(dict(integration_req["headers"])),
multiValueHeaders=self._format_headers(
Expand All @@ -536,7 +540,7 @@ def create_lambda_input_event(self, context: RestApiInvocationContext) -> Lambda
or None,
pathParameters=invocation_req["path_parameters"] or None,
httpMethod=invocation_req["http_method"],
path=invocation_req["path"],
path=path,
resource=context.resource["path"],
)

Expand Down
Loading
0