Safety trim

pull/2143/head
dgtlmoon 11 months ago
parent f57c45f362
commit c8ac19e15b

@ -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 # Record the 'server' header reply, can be used for actions in the future like cloudflare/akamai workarounds
try: try:
server_header = update_handler.fetcher.headers.get('server', '').lower()[:255]
self.datastore.update_watch(uuid=uuid, self.datastore.update_watch(uuid=uuid,
update_obj={ update_obj={'remote_server_reply': server_header}
'remote_server_reply': update_handler.fetcher.headers.get('server', '').lower()
}
) )
except Exception as e: except Exception as e:
pass pass

Loading…
Cancel
Save