From b44255de3cf28420e0ff7128400abd559bdc2b17 Mon Sep 17 00:00:00 2001 From: Alex Kocharin Date: Thu, 26 Dec 2013 23:25:19 +0400 Subject: [PATCH] set right Accept header for tarballs, closes #32 --- ChangeLog.md | 4 ++++ lib/up-storage.js | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog.md b/ChangeLog.md index b1a9b835e..d08c6a32c 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,4 +1,8 @@ +26 Dec 2013, version 0.5.9 + +- fixing bug with bad Accept header (issue #32) + 20 Dec 2013, version 0.5.8 - fixed a warning from js-yaml diff --git a/lib/up-storage.js b/lib/up-storage.js index f3a72fe14..607a0ef93 100644 --- a/lib/up-storage.js +++ b/lib/up-storage.js @@ -316,6 +316,9 @@ Storage.prototype.get_url = function(url) { var rstream = this.request({ uri_full: url, encoding: null, + headers: { + Accept: 'application/octet-stream', + }, }) rstream.on('response', function(res) {