1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +00:00

Set User-Agent: STRATZ_API header to bypass Cloudflare

This commit is contained in:
Steffo 2024-10-28 05:04:15 +01:00
parent c6358cb649
commit 6ac67514b0
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -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