From 27bdf5478268ce452b837676a63aa79229c91db0 Mon Sep 17 00:00:00 2001 From: Godzil Date: Thu, 4 Oct 2018 20:02:28 +0100 Subject: [PATCH] Solve issue with redirection (now it should follow automatically) --- src/my_request.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/my_request.ts b/src/my_request.ts index 331a545..4cd0e80 100644 --- a/src/my_request.ts +++ b/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 {