mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-09 15:14:45 +00:00
Prevent getting cached answers for version update check.
This commit is contained in:
parent
02b54d804c
commit
d915b17498
1 changed files with 3 additions and 1 deletions
|
|
@ -56,7 +56,9 @@ def check_update ():
|
|||
|
||||
def get_online_version ():
|
||||
"""Download update info and parse it."""
|
||||
info, content = get_content(UPDATE_URL)
|
||||
# prevent getting a cached answer
|
||||
headers = {'Pragma': 'no-cache'}
|
||||
info, content = get_content(UPDATE_URL, addheaders=headers)
|
||||
if info is None:
|
||||
None, _('could not download update information')
|
||||
version, url = None, None
|
||||
|
|
|
|||
Loading…
Reference in a new issue