Solve issue with redirection (now it should follow automatically)

This commit is contained in:
Godzil 2018-10-04 20:02:28 +01:00
parent beed932e93
commit 27bdf54782

View File

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