authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-01-11 22:46:13 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-01-11 22:46:13 -08:00
logc62329d6a2d27e71200fcf44427f15682a389956
treebede47243d33a7f8947c9cd98242d34608a44cff
parent7059e7495908e4757dd4a02b87c5dde0381265e7

└─ run test 399/543 passed, 136 failed, 8 skipped


1 files changed, 1 insertions(+), 1 deletions(-)

url.zig+1-1
...@@ -839,7 +839,7 @@ fn parseHost(allocator: std.mem.Allocator, input: []u8, isOpaque: bool) !URL.Hos...@@ -839,7 +839,7 @@ fn parseHost(allocator: std.mem.Allocator, input: []u8, isOpaque: bool) !URL.Hos
839 // 1. If input does not end with U+005D (]), IPv6-unclosed validation error, return failure.839 // 1. If input does not end with U+005D (]), IPv6-unclosed validation error, return failure.
840 if (!std.mem.endsWith(u8, input, "]")) return error.InvalidURL;840 if (!std.mem.endsWith(u8, input, "]")) return error.InvalidURL;
841 // 2. Return the result of IPv6 parsing input with its leading U+005B ([) and trailing U+005D (]) removed.841 // 2. Return the result of IPv6 parsing input with its leading U+005B ([) and trailing U+005D (]) removed.
842 const adr = try parseIPv6(input[1 .. input.len - 1 - 1]);842 const adr = try parseIPv6(input[1 .. input.len - 1]);
843 return .{ .ipv6 = adr };843 return .{ .ipv6 = adr };
844 }844 }
845 // 2. If isOpaque is true, then return the result of opaque-host parsing input.845 // 2. If isOpaque is true, then return the result of opaque-host parsing input.