1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 21:02:38 +00:00

User-Agent tweak

This commit is contained in:
Myned 2017-10-20 16:22:14 -04:00
parent dc63ec794e
commit c1a0f5850d

View file

@ -106,7 +106,7 @@ def close(loop):
async def fetch(url, *, params={}, json=False):
global session
async with session.get(url, params=params, headers={'user-agent': 'Modumind/0.0.1 (Myned)'}) as r:
async with session.get(url, params=params, headers={'User-Agent': 'Myned/Modumind/0.0.1'}) as r:
if json:
return await r.json()
return await r.read()