async_client: Fix the user agent.

This commit is contained in:
Damir Jelić 2020-03-11 11:43:31 +01:00
parent bc4416e7cd
commit 33ee5cce61

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);