refactor path / domain parsing

This commit is contained in:
sjorsdonkers
2025-06-13 12:37:19 +02:00
committed by Sjors
parent 3f4338cb51
commit 74ce7ca416
3 changed files with 94 additions and 56 deletions

View File

@@ -249,7 +249,7 @@ pub fn writeCookie(cookie: *const Cookie, w: anytype) !void {
try w.write(cookie.value);
try w.objectField("domain");
try w.write(cookie.domain);
try w.write(cookie.domain); // Should we hide a leading dot?
try w.objectField("path");
try w.write(cookie.path);