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:
parent
392679a26d
commit
894cbf8687
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue