Skip to content

Commit

Permalink
Close http connections (#1595) (#1905)
Browse files Browse the repository at this point in the history
  • Loading branch information
soxoj authored Nov 27, 2024
1 parent 6170f07 commit 2e2a47a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions maigret/checking.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2e2a47a

Please sign in to comment.