Skip to content

Commit 92f79a5

Browse files
committed
Fixed the infinite redirects bug on Instagram. Location headers should be handled by Puppeteer and not got
1 parent a3048ef commit 92f79a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/proxy.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ const requestHandler = async (request, proxy, overrides = {}) => {
2323
ignoreInvalidCookies:
2424
typeof overrides.ignoreInvalidCookies === "undefined"
2525
? false
26-
: overrides.ignoreInvalidCookies
26+
: overrides.ignoreInvalidCookies,
27+
followRedirect: false
2728
};
2829
try {
2930
const response = await got(overrides.url || request.url(), options);

0 commit comments

Comments
 (0)