async_client: Fix the user agent.

master
Damir Jelić 2020-03-11 11:43:31 +01:00
parent bc4416e7cd
commit 33ee5cce61
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ impl AsyncClient {
let user_agent = match config.user_agent {
Some(a) => a,
None => HeaderValue::from_str(&format!("nio-rust {}", VERSION)).unwrap(),
None => HeaderValue::from_str(&format!("matrix-rust-sdk {}", VERSION)).unwrap(),
};
headers.insert(reqwest::header::USER_AGENT, user_agent);