Skip to content

Commit

Permalink
set right Accept header for tarballs, closes #32
Browse files Browse the repository at this point in the history
  • Loading branch information
rlidwka committed Dec 26, 2013
1 parent 1c17291 commit b44255d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions lib/up-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b44255d

Please # to comment.