From 281cd523e6b06ebac430b201b20ab138a7495b31 Mon Sep 17 00:00:00 2001 From: jomo Date: Wed, 18 Feb 2015 19:14:48 +0100 Subject: [PATCH] remove unused options for GET requests --- modules/networking.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/networking.js b/modules/networking.js index b7ffb15..f3e77e0 100644 --- a/modules/networking.js +++ b/modules/networking.js @@ -48,9 +48,9 @@ exp.get_from_options = function(rid, url, options, callback) { headers: { "User-Agent": "https://crafatar.com" }, - timeout: (options.timeout || config.http_timeout), + timeout: config.http_timeout, + followRedirect: false, encoding: (options.encoding || null), - followRedirect: (options.folow_redirect || false), }, function(error, response, body) { // 200 or 301 depending on content type if (!error && (response.statusCode === 200 || response.statusCode === 301)) {