From 6ac67514b08fce2dde72e4bc3c7b48b3a42f3bd3 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 28 Oct 2024 05:04:15 +0100 Subject: [PATCH] Set `User-Agent: STRATZ_API` header to bypass Cloudflare --- src/interfaces/stratz/guild_matches.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/interfaces/stratz/guild_matches.rs b/src/interfaces/stratz/guild_matches.rs index c87cbaca..dea898d4 100644 --- a/src/interfaces/stratz/guild_matches.rs +++ b/src/interfaces/stratz/guild_matches.rs @@ -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