This commit is contained in:
Girish Ramakrishnan
2018-02-22 10:34:43 -08:00
parent 28b864c346
commit 6075a7a890

View File

@@ -108,7 +108,7 @@ function getS3Config(apiConfig, callback) {
if (apiConfig.endpoint) credentials.endpoint = apiConfig.endpoint;
if (apiConfig.acceptSelfSignedCerts === true && credentials.endpoint && credentials.endpoint.startsWith('https://')) {
credentials.httpOptions.agent = {
credentials.httpOptions = {
agent: new https.Agent({ rejectUnauthorized: false })
};
}