xtask: Set user-agent string of HTTP client
GitHub doesn't allow to use the REST API without a user-agent set
This commit is contained in:
parent
14d7ec42e7
commit
30701596d0
@ -58,7 +58,7 @@ impl ReleaseTask {
|
|||||||
|
|
||||||
let config = crate::Config::load()?.github;
|
let config = crate::Config::load()?.github;
|
||||||
|
|
||||||
let http_client = Client::new();
|
let http_client = Client::builder().user_agent("ruma xtask").build()?;
|
||||||
|
|
||||||
Ok(Self { metadata, package, version, http_client, config, dry_run })
|
Ok(Self { metadata, package, version, http_client, config, dry_run })
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user