зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1529285 - Rename Cookie::httpOnly to ::http_only. r=ato
Differential Revision: https://phabricator.services.mozilla.com/D21662 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
c66ffa7d21
Коммит
3d0a96e5d2
|
@ -15,8 +15,8 @@ pub struct Cookie {
|
|||
pub domain: Option<String>,
|
||||
#[serde(default)]
|
||||
pub secure: bool,
|
||||
#[serde(default)]
|
||||
pub httpOnly: bool,
|
||||
#[serde(rename = "httpOnly")]
|
||||
pub http_only: bool,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub expiry: Option<Date>,
|
||||
}
|
||||
|
|
|
@ -178,7 +178,7 @@ mod tests {
|
|||
domain: Some("foo.bar".into()),
|
||||
expiry: Some(Date(123)),
|
||||
secure: true,
|
||||
httpOnly: false,
|
||||
http_only: false,
|
||||
}));
|
||||
|
||||
check_serialize(&json, &data);
|
||||
|
@ -201,7 +201,7 @@ mod tests {
|
|||
domain: None,
|
||||
expiry: None,
|
||||
secure: true,
|
||||
httpOnly: false,
|
||||
http_only: false,
|
||||
}));
|
||||
|
||||
check_serialize(&json, &data);
|
||||
|
@ -224,7 +224,7 @@ mod tests {
|
|||
domain: None,
|
||||
expiry: None,
|
||||
secure: true,
|
||||
httpOnly: false,
|
||||
http_only: false,
|
||||
}]));
|
||||
|
||||
check_serialize(&json, &data);
|
||||
|
|
Загрузка…
Ссылка в новой задаче