From 14ac0d0eb2d8bd5554c91241f2244a624d63b8f7 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Wed, 21 Jun 2023 03:40:10 -0700 Subject: [PATCH] support when there are multiple cookies --- cookies.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookies.zig b/cookies.zig index d354c8bc93bb45afffd3fbe15e31f3c3e742e61f..f19e780c8c89dfc099891fcb7c647d59518912f2 100644 --- a/cookies.zig +++ b/cookies.zig @@ -6,7 +6,7 @@ pub const Jar = std.StringHashMap(string); pub fn parse(alloc: std.mem.Allocator, headers: std.http.Headers) !Jar { var map = Jar.init(alloc); const h = headers.getFirstValue("cookie") orelse return map; - var iter = std.mem.split(u8, h, ";"); + var iter = std.mem.split(u8, h, "; "); while (iter.next()) |item| { const i = std.mem.indexOfScalar(u8, item, '='); if (i == null) continue; -- 2.54.0