Skip to content

Lightpanda: the headless browser designed for AI and automation

http max redirects should be 20 by default

Muki Kiboigodb428af3a565
diff --git a/src/Config.zig b/src/Config.zig
index 227a044fb..bba3f92c6 100644
--- a/src/Config.zig
+++ b/src/Config.zig
@@ -702,8 +702,10 @@ pub fn httpTimeout(self: *const Config) u31 {
};
}
+// https://fetch.spec.whatwg.org/#http-redirect-fetch
+// "If request’s redirect count is 20, then return a network error."
pub fn httpMaxRedirects(_: *const Config) u8 {
- return 10;
+ return 20;
}
pub fn httpMaxResponseSize(self: *const Config) ?usize {