Commit b8af35b4 authored by Nane Kratzke's avatar Nane Kratzke
Browse files

header passing bug fix

parent cc2e85a7
......@@ -28,7 +28,7 @@ def load_url(url, headers):
h = {}
h = {
"User-Agent": headers['User-Agent'],
"salvo": headers['salvo']
"salvo": headers.get('salvo', 'no')
}
return json.loads(requests.get(url, headers=h, allow_redirects=True).content)
......
Supports Markdown
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