diff --git a/src/reqwest_client.rs b/src/reqwest_client.rs index 6435681..24f9e88 100644 --- a/src/reqwest_client.rs +++ b/src/reqwest_client.rs @@ -5,9 +5,11 @@ pub static HTTP: Lazy = Lazy::new(|| { let mut builder = reqwest::ClientBuilder::new(); let mut headers = header::HeaderMap::new(); + + let user_agent = format!("valfisk/{}", env!("CARGO_PKG_VERSION")); headers.insert( "user-agent", - header::HeaderValue::from_static("valfisk/0.1.0"), + header::HeaderValue::from_str(&user_agent).unwrap(), ); builder = builder.default_headers(headers);