Skip to content

Commit 23af065

Browse files
committed
Remove cache control headers
1 parent 65f16e3 commit 23af065

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

discord/http.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -695,9 +695,7 @@ async def ws_connect(self, url: str, **kwargs) -> requests.AsyncWebSocket:
695695
headers: Dict[str, Any] = {
696696
'Accept-Language': 'en-US,en;q=0.9',
697697
'Accept-Encoding': 'gzip, deflate, br, zstd',
698-
'Cache-Control': 'no-cache',
699698
'Origin': 'https://discord.com',
700-
'Pragma': 'no-cache',
701699
'Sec-WebSocket-Extensions': 'permessage-deflate; client_max_window_bits',
702700
'User-Agent': self.user_agent,
703701
}
@@ -785,9 +783,7 @@ async def request(
785783
'Accept': '*/*',
786784
'Accept-Language': 'en-US,en;q=0.9',
787785
'Accept-Encoding': 'gzip, deflate, br, zstd',
788-
'Cache-Control': 'no-cache',
789786
'Origin': 'https://discord.com',
790-
'Pragma': 'no-cache',
791787
'Priority': 'u=0, i',
792788
'Referer': 'https://discord.com/channels/@me',
793789
'Sec-Fetch-Dest': 'empty',

0 commit comments

Comments
 (0)