nga-python: use https when downloading an image

FossilOrigin-Name: fd6b6b6a570c40bc025df1cecc465ae80497f100173e67276c21cbdedcb9e1f3
This commit is contained in:
crc 2020-12-28 13:12:03 +00:00
parent 3dbab4061a
commit 27289092f8

View file

@ -563,7 +563,7 @@ class Retro:
import requests
import shutil
data = requests.get("http://forth.works/ngaImage", stream=True)
data = requests.get("https://forthworks.com/retro/ngaImage", stream=True)
with open("ngaImage", "wb") as f:
data.raw.decode_content = True
shutil.copyfileobj(data.raw, f)