use old api for compile-upload-asset #3
@ -522,7 +522,7 @@ async fn cookie_from_args(literal:Option<String>,environment:Option<String>,file
|
|||||||
(Some(cookie_literal),None,None)=>cookie_literal,
|
(Some(cookie_literal),None,None)=>cookie_literal,
|
||||||
(None,Some(cookie_environment),None)=>std::env::var(cookie_environment)?,
|
(None,Some(cookie_environment),None)=>std::env::var(cookie_environment)?,
|
||||||
(None,None,Some(cookie_file))=>tokio::fs::read_to_string(cookie_file).await?,
|
(None,None,Some(cookie_file))=>tokio::fs::read_to_string(cookie_file).await?,
|
||||||
_=>Err(anyhow::Error::msg("Illegal api key argument triple"))?,
|
_=>Err(anyhow::Error::msg("Illegal cookie argument triple"))?,
|
||||||
};
|
};
|
||||||
Ok(Cookie::new(format!(".ROBLOSECURITY={cookie}")))
|
Ok(Cookie::new(format!(".ROBLOSECURITY={cookie}")))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user