async_client: Fix the user agent.
parent
bc4416e7cd
commit
33ee5cce61
|
@ -233,7 +233,7 @@ impl AsyncClient {
|
||||||
|
|
||||||
let user_agent = match config.user_agent {
|
let user_agent = match config.user_agent {
|
||||||
Some(a) => a,
|
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);
|
headers.insert(reqwest::header::USER_AGENT, user_agent);
|
||||||
|
|
Loading…
Reference in New Issue