mirror of
https://github.com/zigzap/zap.git
synced 2025-10-20 23:24:09 +00:00
Compare commits
No commits in common. "a953fc5969ac7f93b9bf9f72ebe6c8b2959a8140" and "a385bea1edecc4f4ab9116150bc9dca9f44f9595" have entirely different histories.
a953fc5969
...
a385bea1ed
4 changed files with 0 additions and 8 deletions
|
@ -320,9 +320,6 @@ int http_set_cookie(http_s *h, http_cookie_args_s cookie) {
|
|||
if (cookie.secure) {
|
||||
fiobj_str_write(c, "secure;", 7);
|
||||
}
|
||||
if(cookie.partitioned) {
|
||||
fiobj_str_write(c, "Partitioned;", 12);
|
||||
}
|
||||
set_header_add(h->private_data.out_headers, HTTP_HEADER_SET_COOKIE, c);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -153,8 +153,6 @@ typedef struct {
|
|||
unsigned secure : 1;
|
||||
/** Limit cookie to HTTP (intended to prevent javascript access/hijacking).*/
|
||||
unsigned http_only : 1;
|
||||
/** Partitioned storage, with a separate cookie jar per top-level site */
|
||||
unsigned partitioned: 1;
|
||||
} http_cookie_args_s;
|
||||
|
||||
/**
|
||||
|
|
|
@ -116,7 +116,6 @@ pub const http_cookie_args_s = extern struct {
|
|||
max_age: c_int,
|
||||
secure: c_uint,
|
||||
http_only: c_uint,
|
||||
partitioned: c_uint,
|
||||
};
|
||||
|
||||
pub const struct_fio_str_info_s = extern struct {
|
||||
|
|
|
@ -273,7 +273,6 @@ pub const CookieArgs = struct {
|
|||
max_age_s: c_int = 0,
|
||||
secure: bool = true,
|
||||
http_only: bool = true,
|
||||
partitioned: bool = false,
|
||||
};
|
||||
|
||||
path: ?[]const u8,
|
||||
|
@ -684,7 +683,6 @@ pub fn setCookie(self: *const Request, args: CookieArgs) HttpError!void {
|
|||
.max_age = args.max_age_s,
|
||||
.secure = if (args.secure) 1 else 0,
|
||||
.http_only = if (args.http_only) 1 else 0,
|
||||
.partitioned = if (args.partitioned) 1 else 0,
|
||||
};
|
||||
|
||||
// TODO WAT?
|
||||
|
|
Loading…
Add table
Reference in a new issue