Skip to content

Commit 5112c4c

Browse files
committed
prefer hostname instead of host in forRequest
1 parent 048a6da commit 5112c4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/browser/storage/cookie.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,10 @@ pub const Jar = struct {
8181
prefix: ?[]const u8 = null,
8282
};
8383

84+
// FIXME: Invalid behavior.
8485
pub fn forRequest(self: *Jar, target_url: URL, writer: anytype, opts: LookupOpts) !void {
8586
const target = PreparedUri{
86-
.host = target_url.host(),
87+
.host = target_url.getHostname(),
8788
.path = target_url.getPath(),
8889
.secure = target_url.isSecure(),
8990
};

0 commit comments

Comments
 (0)