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