Skip to content

Commit

Permalink
dev edge api: fix host header
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbalfour committed Mar 5, 2024
1 parent ac7ff01 commit f991622
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions packages/constructs/edge-api/src/dev-edge-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,8 @@ export class DevEdgeAPI extends Construct {
'proxy-integration',
this.ensureHTTPS(this.pickDestination(endpoint.destination), endpoint.insecure) + destPath,
{
parameterMapping: ParameterMapping.fromObject({
host: {
value: this.ensureNoProtocol(this.pickDestination(endpoint.destination)),
},
parameterMapping: new ParameterMapping().overwriteHeader('host', {
value: this.ensureNoProtocol(this.pickDestination(endpoint.destination)),
}),
},
),
Expand All @@ -137,10 +135,8 @@ export class DevEdgeAPI extends Construct {
'proxy-integration',
this.ensureHTTPS(this.pickDestination(endpoint.destination), endpoint.insecure) + destPath + '/{proxy}',
{
parameterMapping: ParameterMapping.fromObject({
host: {
value: this.ensureNoProtocol(this.pickDestination(endpoint.destination)),
},
parameterMapping: new ParameterMapping().overwriteHeader('host', {
value: this.ensureNoProtocol(this.pickDestination(endpoint.destination)),
}),
},
),
Expand Down

0 comments on commit f991622

Please sign in to comment.