소스 검색

remove unused options for GET requests

jomo 10 년 전
부모
커밋
281cd523e6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      modules/networking.js

+ 2 - 2
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)) {