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

fixes #137
pull/145/head
Richard Schwab 2021-07-18 02:12:23 +02:00 zatwierdzone przez GitHub
rodzic 50026ee6d9
commit b008269a70
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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