about summary refs log tree commit diff
path: root/main.py
diff options
context:
space:
mode:
authorUltraQbik <no1skill@yandex.ru>2024-08-27 22:22:58 +0300
committerUltraQbik <no1skill@yandex.ru>2024-08-27 22:22:58 +0300
commit0fd9990c013be4c29cf5829fcc256dce677da9b1 (patch)
tree9cf491d1d746f5742fe8120143db12d47d6e40fd /main.py
parentea9c74bbf5be81ccb6248b53e541b1d2e06d3d07 (diff)
downloadhttpy-0fd9990c013be4c29cf5829fcc256dce677da9b1.tar.gz
httpy-0fd9990c013be4c29cf5829fcc256dce677da9b1.zip
change brotli to gzip
Diffstat (limited to 'main.py')
-rw-r--r--main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index 3f3aace..3bfdeeb 100644
--- a/main.py
+++ b/main.py
@@ -168,8 +168,8 @@ class HTTPServer:
 
         # Remove self from thread list and close the connection
         self.client_threads.remove(threading.current_thread())
-        client.close()
         self.semaphore.release()
+        client.close()
 
     def _client_request_handler(self, client: _usocket, request: Request):
         """