Skip to content

Commit

Permalink
Fix download-enmon.js
Browse files Browse the repository at this point in the history
  • Loading branch information
blavka committed Sep 11, 2020
1 parent 37bde25 commit 9360ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion download-enmon.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ https.get('https://api.github.com/repos/hardwario/enmon/releases/latest' ,{ head
console.log(response.headers.location)

const file = fs.createWriteStream("bin/enmon");
https.get(response.headers.location, { headers: headers }, (response) => {
https.get(response.headers.location, (response) => {
response.pipe(file);
});
});
Expand Down

0 comments on commit 9360ec1

Please sign in to comment.