Skip to content

Commit

Permalink
1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bartve committed Sep 4, 2017
1 parent 7b4b3bf commit 1e76f27
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
1.2.1 / 2017-09-04
==================
* Fixed bug in image downloads (and any url different from `api.discogs.com`)

1.2.0 / 2017-06-07
==================
* Query parameter is now optional for `database.search()`
* Implemented different request limits for authenticated and non-authenticated clients

Expand Down
8 changes: 4 additions & 4 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,16 +149,16 @@ DiscogsClient.prototype.about = function(callback) {

DiscogsClient.prototype._rawRequest = function(options, callback) {
var data = options.data || null,
method = options.method || 'GET',
urlParts = url.parse(options.url),
encoding = options.encoding || 'utf8';
method = options.method || 'GET',
urlParts = url.parse(options.url),
encoding = options.encoding || 'utf8';

// 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-Encoding': 'gzip,deflate',
'Host': this.config.host,
'Host': urlParts.host || this.config.host,
'Connection': 'close',
'Content-Length': 0
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "disconnect",
"description": "A full featured Discogs API v2.0 client library",
"version": "1.2.0",
"version": "1.2.1",
"keywords": ["discogs", "api", "client", "oauth"],
"homepage": "https://github.com/bartve/disconnect",
"bugs": "https://github.com/bartve/disconnect/issues",
Expand Down

0 comments on commit 1e76f27

Please sign in to comment.