From c1a0f5850d780ad66e228526b2ee779ee5e4d8f6 Mon Sep 17 00:00:00 2001 From: Myned Date: Fri, 20 Oct 2017 16:22:14 -0400 Subject: [PATCH] User-Agent tweak --- src/main/utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/utils/utils.py b/src/main/utils/utils.py index d75ca93..e32a1aa 100644 --- a/src/main/utils/utils.py +++ b/src/main/utils/utils.py @@ -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()