remove unused options for GET requests

This commit is contained in:
jomo 2015-02-18 19:14:48 +01:00
parent de5bad8702
commit 281cd523e6

View File

@ -48,9 +48,9 @@ exp.get_from_options = function(rid, url, options, callback) {
headers: { headers: {
"User-Agent": "https://crafatar.com" "User-Agent": "https://crafatar.com"
}, },
timeout: (options.timeout || config.http_timeout), timeout: config.http_timeout,
followRedirect: false,
encoding: (options.encoding || null), encoding: (options.encoding || null),
followRedirect: (options.folow_redirect || false),
}, function(error, response, body) { }, function(error, response, body) {
// 200 or 301 depending on content type // 200 or 301 depending on content type
if (!error && (response.statusCode === 200 || response.statusCode === 301)) { if (!error && (response.statusCode === 200 || response.statusCode === 301)) {