feat(cmd): set Accept-Encoding & Priority headers for all HTTP requests
This commit is contained in:
parent
b3f9a2f6fa
commit
69bca58cee
1 changed files with 2 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue