You've already forked AstralRinth
forked from didirus/AstralRinth
Include OS in theseus User-Agent (#5046)
This commit is contained in:
committed by
GitHub
parent
a1d9268d00
commit
17db55a0bc
@@ -1,5 +1,4 @@
|
||||
use crate::ErrorKind;
|
||||
use crate::LAUNCHER_USER_AGENT;
|
||||
use crate::data::ModrinthCredentials;
|
||||
use crate::event::FriendPayload;
|
||||
use crate::event::emit::emit_friend;
|
||||
@@ -85,7 +84,7 @@ impl FriendsSocket {
|
||||
|
||||
request.headers_mut().insert(
|
||||
"User-Agent",
|
||||
HeaderValue::from_str(LAUNCHER_USER_AGENT).unwrap(),
|
||||
HeaderValue::from_str(&crate::launcher_user_agent()).unwrap(),
|
||||
);
|
||||
|
||||
let res = connect_async(request).await;
|
||||
|
||||
Reference in New Issue
Block a user