diff --git a/src/url.zig b/src/url.zig index 694b9387..b8e54b02 100644 --- a/src/url.zig +++ b/src/url.zig @@ -252,7 +252,7 @@ test "URL: Stiching src as full path" { const base = "https://www.lightpanda.io/"; const src = "https://lightpanda.io/something.js"; - const result = try URL.stitch(allocator, src, base, .{}); + const result = try URL.stitch(allocator, src, base, .{ .alloc = .if_needed }); try testing.expectString("https://lightpanda.io/something.js", result); }