summaryrefslogtreecommitdiff
path: root/kvmd/plugins
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-05-17 15:24:29 +0300
committerDevaev Maxim <[email protected]>2020-05-17 16:09:58 +0300
commit1fd33bc8ed29c3aaeb6c9971e5879c04113246a3 (patch)
treedb022c9c291fdd2495ddd02aa89b532ce4d011cc /kvmd/plugins
parent1251b8d705c5a48a78290b2d25cd4de048245035 (diff)
refactoring
Diffstat (limited to 'kvmd/plugins')
-rw-r--r--kvmd/plugins/auth/http.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/auth/http.py b/kvmd/plugins/auth/http.py
index 4cba34fe..2daf5540 100644
--- a/kvmd/plugins/auth/http.py
+++ b/kvmd/plugins/auth/http.py
@@ -33,7 +33,7 @@ from ...validators.basic import valid_float_f01
from ...logging import get_logger
-from ... import __version__
+from ... import make_user_agent
from . import BaseAuthService
@@ -85,7 +85,7 @@ class Plugin(BaseAuthService):
"secret": self.__secret,
},
headers={
- "User-Agent": f"KVMD/{__version__}",
+ "User-Agent": make_user_agent("KVMD"),
"X-KVMD-User": user,
},
) as response: