8000 bug #36609 Add missing port SQS Host Header request (jderusse) · symfony/symfony@ed1b6ea · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit ed1b6ea

Browse files
committed
bug #36609 Add missing port SQS Host Header request (jderusse)
This PR was merged into the 5.1-dev branch. Discussion ---------- Add missing port SQS Host Header request | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | / | License | MIT | Doc PR | / When user provides a custom endpoint, the port is missing from the `Host` headers, leading to wrong URL when calling `getQueueUrl` Commits ------- 41165be Add missing port SQS Host Header request
2 parents da6620c + 41165be commit ed1b6ea

File tree

1 file changed

+1
-1
lines changed
  • src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport

1 file changed

+1
-1
lines changed

src/Symfony/Component/Messenger/Bridge/AmazonSqs/Transport/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ private function request(string $endpoint, array $body): ResponseInterface
334334
$parsedUrl = parse_url($endpoint);
335335

336336
$headers = [
337-
'host' => $parsedUrl['host'],
337+
'host' => $parsedUrl['host'].($parsedUrl['port'] ? ':'.$parsedUrl['port'] : ''),
338338
'x-amz-date' => $amzDate,
339339
'content-type' => 'application/x-www-form-urlencoded',
340340
];

0 commit comments

Comments
 (0)
0