Skip to content

Lightpanda: the headless browser designed for AI and automation

fix ordering in Request.InitOpts

Muki Kiboigof2f93d0bc587
diff --git a/src/browser/webapi/net/Request.zig b/src/browser/webapi/net/Request.zig
index 115fdcffa..88d520a32 100644
--- a/src/browser/webapi/net/Request.zig
+++ b/src/browser/webapi/net/Request.zig
@@ -61,9 +61,9 @@ pub const InitOpts = struct {
credentials: Credentials = .@"same-origin",
headers: ?Headers.InitOpts = null,
method: ?[]const u8 = null,
+ mode: Mode = .cors,
priority: ?[]const u8 = null,
redirect: Redirect = .follow,
- mode: Mode = .cors,
signal: ?*AbortSignal = null,
};