diff --git a/src/browser/storage/cookie.zig b/src/browser/storage/cookie.zig index c43fb5f0..4a821678 100644 --- a/src/browser/storage/cookie.zig +++ b/src/browser/storage/cookie.zig @@ -81,9 +81,10 @@ pub const Jar = struct { prefix: ?[]const u8 = null, }; + // FIXME: Invalid behavior. pub fn forRequest(self: *Jar, target_url: URL, writer: anytype, opts: LookupOpts) !void { const target = PreparedUri{ - .host = target_url.host(), + .host = target_url.getHostname(), .path = target_url.getPath(), .secure = target_url.isSecure(), };