You've already forked AstralRinth
Include OS in theseus User-Agent (#5046)
This commit is contained in:
committed by
GitHub
parent
a1d9268d00
commit
17db55a0bc
@@ -26,8 +26,13 @@ pub use event::{
|
||||
pub use logger::start_logger;
|
||||
pub use state::State;
|
||||
|
||||
pub const LAUNCHER_USER_AGENT: &str = concat!(
|
||||
"modrinth/theseus/",
|
||||
env!("CARGO_PKG_VERSION"),
|
||||
" (support@modrinth.com)"
|
||||
);
|
||||
pub fn launcher_user_agent() -> String {
|
||||
const LAUNCHER_BASE_USER_AGENT: &str =
|
||||
concat!("modrinth/theseus/", env!("CARGO_PKG_VERSION"),);
|
||||
|
||||
format!(
|
||||
"{} ({}; support@modrinth.com)",
|
||||
LAUNCHER_BASE_USER_AGENT,
|
||||
std::env::consts::OS
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user