1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-24 22:27:28 +00:00

Tweaked UA header

This commit is contained in:
Myned 2017-10-21 16:38:49 -04:00
parent 392679a26d
commit 894cbf8687

View file

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