mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-24 12:04:20 +00:00
Set User-Agent: STRATZ_API
header to bypass Cloudflare
This commit is contained in:
parent
c6358cb649
commit
6ac67514b0
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ pub async fn query(client: &reqwest::Client, url: Url, guild_id: i64) -> QueryRe
|
|||
|
||||
log::trace!("Making request...");
|
||||
let response = client.post(url)
|
||||
.header("User-Agent", "STRATZ_API")
|
||||
.json(&body)
|
||||
.send()
|
||||
.await
|
||||
|
|
Loading…
Reference in a new issue