1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01:00

set right Accept header for tarballs, closes #32

This commit is contained in:
Alex Kocharin 2013-12-26 23:25:19 +04:00
parent 1c17291654
commit b44255de3c
2 changed files with 7 additions and 0 deletions

@ -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

@ -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) {