Primitive support for extra headers

pull/1/head
Leigh Morresi 4 years ago
parent eb2791da42
commit f455f14efd

@ -47,6 +47,11 @@ class perform_site_check(Thread):
'Accept-Language': 'en-GB,en-US;q=0.9,en;q=0.8,cs;q=0.7' 'Accept-Language': 'en-GB,en-US;q=0.9,en;q=0.8,cs;q=0.7'
} }
extra_headers = self.datastore.get_val(self.uuid, 'headers')
headers.update(extra_headers)
print (headers)
print("Checking", self.url) print("Checking", self.url)
import html2text import html2text

@ -17,7 +17,8 @@ class ChangeDetectionStore:
'last_checked': 0, 'last_checked': 0,
'last_changed': 0, 'last_changed': 0,
'title': None, 'title': None,
'uuid': str(uuid.uuid4()) 'uuid': str(uuid.uuid4()),
'headers' : {}
} }
try: try:

Loading…
Cancel
Save