Skip to content

Commit 55beeb3

Browse files
committed
Fix issue where HTTPS could be identified as HTTP
1 parent 45f3a01 commit 55beeb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Client_AuroraDataMySQL extends Client_MySQL { // eslint-disable-line camel
6666
throw new Error(`Failed to load aws-sdk rdsdataservice client, did you forget to install it as a dependency? (${err.message})`);
6767
}
6868

69-
const https = this.config.connection.sdkConfig && String(this.config.connection.sdkConfig.endpoint).startsWith('http')
69+
const https = this.config.connection.sdkConfig && String(this.config.connection.sdkConfig.endpoint).startsWith('http:')
7070
? require('http')
7171
: require('https');
7272

0 commit comments

Comments
 (0)