Browse Source

Solve issue with redirection (now it should follow automatically)

Godzil 5 years ago
parent
commit
27bdf54782
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/my_request.ts

+ 1 - 0
src/my_request.ts

@@ -420,6 +420,7 @@ function modify(options: string|request.Options, reqMethod: string): request.Opt
     options.jar = j;
     options.headers = defaultHeaders;
     options.method = reqMethod;
+    options.followAllRedirects = true;
     return options;
   }
   return {