Merge pull request 'Add User-Agent to requests' (#17) from BlankParenthesis/hopper:add-user-agent into main
Reviewed-on: #17
This commit is contained in:
commit
3c87609720
|
@ -14,7 +14,10 @@ impl HopperClient {
|
||||||
pub fn new(config: Config) -> Self {
|
pub fn new(config: Config) -> Self {
|
||||||
Self {
|
Self {
|
||||||
config: config,
|
config: config,
|
||||||
client: reqwest::Client::new(),
|
client: reqwest::ClientBuilder::new()
|
||||||
|
.user_agent(format!("tebibytemedia/hopper/{} (tebibyte.media)", env!("CARGO_PKG_VERSION")))
|
||||||
|
.build()
|
||||||
|
.unwrap(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue