From 9b3be14650cf986595b4d0f667e19b5d5282cc65 Mon Sep 17 00:00:00 2001 From: Halil Durak Date: Tue, 14 Oct 2025 12:12:11 +0300 Subject: [PATCH] prefer `hostname` instead of `host` in `forRequest` --- src/browser/storage/cookie.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(), };