Skip to content

Commit

Permalink
Merge pull request #78 from eheyder/master
Browse files Browse the repository at this point in the history
fix: update installer to use https for download
  • Loading branch information
AshanFernando authored Mar 7, 2023
2 parents 63eb919 + d4546c8 commit db30898
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dynamodb/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"setup": {
"download_url": "http://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.tar.gz",
"download_url": "https://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.tar.gz",
"install_path": "bin",
"jar": "DynamoDBLocal.jar"
},
Expand Down
4 changes: 2 additions & 2 deletions dynamodb/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var tar = require("tar"),
zlib = require("zlib"),
path = require("path"),
http = require("http"),
https = require("https"),
fs = require("fs"),
ProgressBar = require("progress"),
utils = require("./utils");
Expand All @@ -12,7 +12,7 @@ var download = function(downloadUrl, installPath, callback) {
console.log(
`Started downloading dynamodb-local from ${downloadUrl} into ${installPath}. Process may take few minutes.`
);
http
https
.get(downloadUrl, function(response) {
var len = parseInt(response.headers["content-length"], 10),
bar = new ProgressBar(
Expand Down

0 comments on commit db30898

Please sign in to comment.