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:
championshuttler 2019-03-09 13:18:30 +00:00
Родитель c66ffa7d21
Коммит 3d0a96e5d2
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -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);