mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-05-02 15:50:36 +00:00
Safety trim
This commit is contained in:
@@ -494,10 +494,9 @@ class update_worker(threading.Thread):
|
||||
|
||||
# Record the 'server' header reply, can be used for actions in the future like cloudflare/akamai workarounds
|
||||
try:
|
||||
server_header = update_handler.fetcher.headers.get('server', '').lower()[:255]
|
||||
self.datastore.update_watch(uuid=uuid,
|
||||
update_obj={
|
||||
'remote_server_reply': update_handler.fetcher.headers.get('server', '').lower()
|
||||
}
|
||||
update_obj={'remote_server_reply': server_header}
|
||||
)
|
||||
except Exception as e:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user