mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
parent
682761e75d
commit
fc7f9204b6
1 changed files with 2 additions and 1 deletions
|
|
@ -35,6 +35,7 @@ import urllib.parse
|
||||||
from . import _
|
from . import _
|
||||||
from . import common
|
from . import common
|
||||||
from . import metadata
|
from . import metadata
|
||||||
|
from . import net
|
||||||
from .exception import VCSException, NoSubmodulesException, FDroidException, MetaDataException
|
from .exception import VCSException, NoSubmodulesException, FDroidException, MetaDataException
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -63,7 +64,7 @@ def check_http(app):
|
||||||
vercode = None
|
vercode = None
|
||||||
if len(urlcode) > 0:
|
if len(urlcode) > 0:
|
||||||
logging.debug("...requesting {0}".format(urlcode))
|
logging.debug("...requesting {0}".format(urlcode))
|
||||||
req = urllib.request.Request(urlcode, None)
|
req = urllib.request.Request(urlcode, None, headers=net.HEADERS)
|
||||||
resp = urllib.request.urlopen(req, None, 20) # nosec B310 scheme is filtered above
|
resp = urllib.request.urlopen(req, None, 20) # nosec B310 scheme is filtered above
|
||||||
page = resp.read().decode('utf-8')
|
page = resp.read().decode('utf-8')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue