Partially revert 47e5a7cf09 (#138)

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

fixes #137
pull/145/head
Richard Schwab 3 years ago committed by GitHub
parent 50026ee6d9
commit b008269a70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -63,7 +63,7 @@ class perform_site_check():
extra_headers = self.datastore.get_val(uuid, 'headers') extra_headers = self.datastore.get_val(uuid, 'headers')
# Tweak the base config with the per-watch ones # 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) request_headers.update(extra_headers)
# https://github.com/psf/requests/issues/4525 # https://github.com/psf/requests/issues/4525

Loading…
Cancel
Save