Lightpanda: the headless browser designed for AI and automation
remove useless null terminated version_z
Pierre Tachoire0a0164c97284
diff --git a/build.zig b/build.zigindex a07ed01c0..7ccff15f7 100644--- a/build.zig+++ b/build.zig@@ -86,11 +86,9 @@ pub fn build(b: *Build) !void {const version_string = b.fmt("{f}", .{version});const version_encoded = std.mem.replaceOwned(u8, b.allocator, version_string, "+", "%2B") catch @panic("OOM");- const version_string_z = b.allocator.dupeZ(u8, version_string) catch @panic("OOM");var opts = b.addOptions();opts.addOption([]const u8, "version", version_string);- opts.addOption([:0]const u8, "version_z", version_string_z);opts.addOption([]const u8, "version_encoded", version_encoded);opts.addOption(?[]const u8, "snapshot_path", snapshot_path);opts.addOption(bool, "wpt_extensions", wpt_extensions);diff --git a/src/Config.zig b/src/Config.zigindex af54975ff..e24e31a1d 100644--- a/src/Config.zig+++ b/src/Config.zig@@ -823,14 +823,14 @@ pub const HttpHeaders = struct {const Brand = struct {brand: [:0]const u8,version: [:0]const u8,- full_version: [:0]const u8,+ full_version: []const u8,};/// Source of truth for client-hints brand data. Both the Sec-Ch-Ua/// HTTP header and navigator.userAgentData.brands derive from this/// list, so the two sides cannot drift.pub const brands = [_]Brand{- .{ .brand = "Lightpanda", .version = "1", .full_version = lp.build_config.version_z },+ .{ .brand = "Lightpanda", .version = "1", .full_version = lp.build_config.version },};pub const sec_ch_ua: [:0]const u8 = blk: {