feat(sync): 同步 upstream 改动并升级到 0.16.3-fork.5
This commit is contained in:
@@ -56,13 +56,11 @@ pub async fn set_cookies(
|
||||
.into_iter()
|
||||
.map(|mut c| {
|
||||
// Auto-fill url if no domain/path/url provided
|
||||
if c.get("url").is_none() && c.get("domain").is_none() && current_url.is_some() {
|
||||
c.as_object_mut().map(|m| {
|
||||
m.insert(
|
||||
"url".to_string(),
|
||||
Value::String(current_url.unwrap().to_string()),
|
||||
)
|
||||
});
|
||||
if c.get("url").is_none() && c.get("domain").is_none() {
|
||||
if let Some(url) = current_url {
|
||||
c.as_object_mut()
|
||||
.map(|m| m.insert("url".to_string(), Value::String(url.to_string())));
|
||||
}
|
||||
}
|
||||
c
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user