Partially revert 47e5a7cf09 (#138)

Copy HTTP headers from the global template instead of updating the global template when fetching a site.

fixes #137
This commit is contained in:
Richard Schwab
2021-07-18 10:12:23 +10:00
committed by GitHub
parent 50026ee6d9
commit b008269a70
+1 -1
View File
@@ -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