Commit b793b11e authored by nanahira's avatar nanahira

fix

parent a3bd1716
Pipeline #337 failed with stages
in 9 minutes and 15 seconds
......@@ -60,7 +60,7 @@ def generate_hash(id, form):
for url in urls:
if url.startswith("http://") or url.startswith("https://"):
resp = requests.get(url=url, header=config.REQUEST_HEADERS)
resp = requests.get(url=url, headers=config.REQUEST_HEADERS)
if resp.status_code != 200:
raise HashException('Invalid response from %s (status code %s)' % (resp.url, resp.status_code))
md5.update(resp.content)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment