From 627db9ce907c189dab922efea18b8c4ee26ed9a5 Mon Sep 17 00:00:00 2001 From: Chris Johnson <49479599+workeffortwaste@users.noreply.github.com> Date: Thu, 4 Feb 2021 06:51:49 +0000 Subject: [PATCH] Fix outputFormat (#67) * Fix request headers for outputFormat * Update client.js --- lib/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/client.js b/lib/client.js index 7efb024..0e50b15 100644 --- a/lib/client.js +++ b/lib/client.js @@ -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', @@ -407,4 +407,4 @@ DiscogsClient.prototype.marketplace = function() { DiscogsClient.prototype.user = function() { return require('./user.js')(this); -}; \ No newline at end of file +};