From 69bca58ceee078f1a5489a1495ea13a280a7739f Mon Sep 17 00:00:00 2001 From: ayn2op Date: Sat, 20 Sep 2025 11:39:16 -0400 Subject: [PATCH] feat(cmd): set Accept-Encoding & Priority headers for all HTTP requests --- cmd/state.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/state.go b/cmd/state.go index 7b6c59a..78e79d1 100644 --- a/cmd/state.go +++ b/cmd/state.go @@ -80,8 +80,10 @@ func getHeaders(props gateway.IdentifyProperties) http.Header { // https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers header.Set("Accept", "*/*") + header.Set("Accept-Encoding", "gzip, deflate, br") header.Set("Accept-Language", "en-US,en;q=0.7") header.Set("Origin", "https://discord.com") + header.Set("Priority", "u=0, i") header.Set("Referer", "https://discord.com/channels/@me") header.Set("Sec-Fetch-Dest", "empty") header.Set("Sec-Fetch-Mode", "cors")