disconnect
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -0,2 +1,7 @@ | ||
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()` | ||
@@ -3,0 +8,0 @@ * Implemented different request limits for authenticated and non-authenticated clients |
@@ -152,5 +152,5 @@ 'use strict'; | ||
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'; | ||
@@ -162,3 +162,3 @@ // Build request headers | ||
'Accept-Encoding': 'gzip,deflate', | ||
'Host': this.config.host, | ||
'Host': urlParts.host || this.config.host, | ||
'Connection': 'close', | ||
@@ -165,0 +165,0 @@ 'Content-Length': 0 |
{ | ||
"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"], | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/bartve/disconnect", |
69557