From d120da8d29d55d0413ed8f9c1bd4ea096aa5dfce Mon Sep 17 00:00:00 2001 From: Albertas Gimbutas Date: Wed, 4 Aug 2021 02:01:35 +0300 Subject: [PATCH] Use tuple instead of list for default compressions --- daphne/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daphne/server.py b/daphne/server.py index 0cd7787..0ea1164 100755 --- a/daphne/server.py +++ b/daphne/server.py @@ -47,11 +47,11 @@ class Server: request_buffer_size=8192, websocket_timeout=86400, websocket_connect_timeout=20, - websocket_permessage_compression_extensions=[ + websocket_permessage_compression_extensions=( "permessage-deflate", "permessage-bzip2", "permessage-snappy", - ], + ), ping_interval=20, ping_timeout=30, root_path="",