fix: correct the useragent we use

This commit is contained in:
dusk 2024-06-11 18:15:42 +03:00
parent c5db977c14
commit 3e7076c748
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw

View File

@ -217,7 +217,7 @@ impl AppState {
direct_links: Default::default(),
http: reqwest::ClientBuilder::new()
.redirect(reqwest::redirect::Policy::none())
.user_agent("limbusart 0.1.0")
.user_agent(format!("{}/{}", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION")))
.build()
.unwrap(),
}),