Skip to content

Cookie parsing broken #246

Description

@Techwizz-somboo

I think cookie parsing is broken on the latest version of jetzig. I'm using zig 0.14.1.

if (cookies.get("ownfusion-token")) |cookie| {
    token = cookie.value;
    std.debug.print("cookie: {s}", .{cookie.value});
}

This block gets missed, but I see the cookie being sent in my request with that name. I can also manually pull the cookie header:

if (request.headers.getFirstValue("Cookie")) |value| {
    std.debug.print("found header {s}", .{value});
}

That shows my cookie.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions