mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
set right Accept header for tarballs, closes #32
This commit is contained in:
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) {
|
||||
|
|
Loading…
Reference in a new issue