From 174c2311dab39611ca354b17bb9a33fcbdd3d94b Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Fri, 16 Jun 2023 14:45:20 +0300 Subject: [PATCH] User agent added --- src/fw_api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fw_api.py b/src/fw_api.py index 2ba23de..dab722b 100644 --- a/src/fw_api.py +++ b/src/fw_api.py @@ -30,7 +30,10 @@ else: class current_instance: s = requests.Session() - s.headers.update({"Accept-encoding": 'gzip, br, deflate'}) + s.headers.update({ + "Accept-encoding": 'gzip, br, deflate', + "User-Agent": "funkwhale-cli/latest-commit; +https://git.phreedom.club/localhost_frssoft/funkwhale-cli" + }) instance = get_config('instance') token = auth.get(instance) listen_token = None