From 7f41b86f7164fa6a9c2a5eab741f7de754f7628c Mon Sep 17 00:00:00 2001 From: NPJigaK Date: Sun, 18 Jun 2023 14:43:12 +0900 Subject: [PATCH] Modify Protocol from Hardcoded 'https' to Dynamic Scheme --- src/internal/sqs.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/internal/sqs.ts b/src/internal/sqs.ts index 34c2f03..332eaea 100644 --- a/src/internal/sqs.ts +++ b/src/internal/sqs.ts @@ -67,7 +67,7 @@ export class SQSClient extends AWSClient { const signedRequest: SignedHTTPRequest = this.signature.sign( { method: 'POST', - protocol: 'https', + protocol: this.scheme, hostname: this.host, path: '/', headers: { @@ -130,7 +130,7 @@ export class SQSClient extends AWSClient { const signedRequest: SignedHTTPRequest = this.signature.sign( { method: 'POST', - protocol: 'https', + protocol: this.scheme, hostname: this.host, path: '/', headers: { @@ -254,4 +254,4 @@ export interface ListQueuesResponse { * Pagination token to include in the next request. */ nextToken?: string -} \ No newline at end of file +}