Skip to content

Commit

Permalink
Fix outputFormat (#67)
Browse files Browse the repository at this point in the history
* Fix request headers for outputFormat

* Update client.js
  • Loading branch information
workeffortwaste authored Feb 4, 2021
1 parent a3fa52c commit 627db9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ DiscogsClient.prototype._rawRequest = function(options, callback) {
// Build request headers
var headers = {
'User-Agent': this.config.userAgent,
'Accept': 'application/json,application/vnd.discogs.' + this.config.apiVersion + '.' + this.config.outputFormat + '+json,application/octet-stream',
'Accept': 'application/vnd.discogs.' + this.config.apiVersion + '.' + this.config.outputFormat + '+json,application/octet-stream',
'Accept-Encoding': 'gzip,deflate',
'Host': urlParts.host || this.config.host,
'Connection': 'close',
Expand Down Expand Up @@ -407,4 +407,4 @@ DiscogsClient.prototype.marketplace = function() {

DiscogsClient.prototype.user = function() {
return require('./user.js')(this);
};
};

0 comments on commit 627db9c

Please sign in to comment.