From b008269a707d993db5b3b0c7b573fabafbe64252 Mon Sep 17 00:00:00 2001 From: Richard Schwab Date: Sun, 18 Jul 2021 02:12:23 +0200 Subject: [PATCH] Partially revert 47e5a7cf0990bc958061ce57de8ae88f3fbd39aa (#138) Copy HTTP headers from the global template instead of updating the global template when fetching a site. fixes #137 --- backend/fetch_site_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/fetch_site_status.py b/backend/fetch_site_status.py index 57767e9e..69e977fa 100644 --- a/backend/fetch_site_status.py +++ b/backend/fetch_site_status.py @@ -63,7 +63,7 @@ class perform_site_check(): extra_headers = self.datastore.get_val(uuid, 'headers') # Tweak the base config with the per-watch ones - request_headers = self.datastore.data['settings']['headers'] + request_headers = self.datastore.data['settings']['headers'].copy() request_headers.update(extra_headers) # https://github.com/psf/requests/issues/4525