From 2885b2642b40bf10a5798af619e6338e070642ba Mon Sep 17 00:00:00 2001 From: Rene Schallner Date: Tue, 30 May 2023 10:42:51 +0200 Subject: [PATCH] Update to latest facil.io patch (cookie path) --- build.zig.zon | 6 +++--- examples/cookies/cookies.zig | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build.zig.zon b/build.zig.zon index 758227e..6cb2a07 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,11 +1,11 @@ .{ .name = "zap", - .version = "0.1.4-pre", + .version = "0.1.6-pre", .dependencies = .{ .@"facil.io" = .{ - .url = "https://github.com/zigzap/facil.io/archive/refs/tags/zap-0.0.8.tar.gz", - .hash = "122071fcc675e114941331726291ca1f0c0c33751d992782c6abf1f0f2ddddc5734d", + .url = "https://github.com/zigzap/facil.io/archive/refs/tags/zap-0.0.10.tar.gz", + .hash = "12205e49e9c2c6f0dcab9423fc92d8f0450a4dc2706b68a6d45a448a738ebff70103", } } } diff --git a/examples/cookies/cookies.zig b/examples/cookies/cookies.zig index 0e07db7..67ab034 100644 --- a/examples/cookies/cookies.zig +++ b/examples/cookies/cookies.zig @@ -80,8 +80,10 @@ pub fn main() !void { r.setCookie(.{ .name = "rene", .value = "rocksai", + .path = "/xxx", + .domain = "yyy", // if we leave .max_age_s = 0 -> session cookie - // .max_age_s = 60, + .max_age_s = 60, // // check out other params: domain, path, secure, http_only }) catch |err| {