From 2e2a47a12be34a7e5d3a2132b3546d4aacc03d65 Mon Sep 17 00:00:00 2001 From: Soxoj <31013580+soxoj@users.noreply.github.com> Date: Wed, 27 Nov 2024 15:28:10 +0100 Subject: [PATCH] Close http connections (#1595) (#1905) --- maigret/checking.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maigret/checking.py b/maigret/checking.py index 4aeab399..1583c027 100644 --- a/maigret/checking.py +++ b/maigret/checking.py @@ -425,6 +425,8 @@ def make_site_result( headers = { "User-Agent": get_random_user_agent(), + # tell server that we want to close connection after request + "Connection": "close", } headers.update(site.headers)