Support for custom headers per watch

This commit is contained in:
Leigh Morresi
2021-01-29 19:12:39 +01:00
parent 3f60ab4167
commit fbe20d45cc
4 changed files with 37 additions and 8 deletions

View File

@@ -47,6 +47,7 @@ class perform_site_check(Thread):
def run(self):
# Default headers
headers = {
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',