summaryrefslogtreecommitdiff
path: root/kvmd/apps
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-12-10 06:29:45 +0300
committerDevaev Maxim <[email protected]>2019-12-10 06:29:45 +0300
commit03e05af39acb78d23e9e0b42eefd4b4f0184daeb (patch)
tree399dae3a69539b0606c276565e6a49c05503b9f3 /kvmd/apps
parentfb2a9986d8af9c17dd96b27d4ce68e0ce6435f3c (diff)
refactoring
Diffstat (limited to 'kvmd/apps')
-rw-r--r--kvmd/apps/kvmd/server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/apps/kvmd/server.py b/kvmd/apps/kvmd/server.py
index 2ad491b9..e12cb166 100644
--- a/kvmd/apps/kvmd/server.py
+++ b/kvmd/apps/kvmd/server.py
@@ -296,8 +296,8 @@ class KvmdServer(HttpServer): # pylint: disable=too-many-arguments,too-many-ins
async def wrapper(request: aiohttp.web.Request) -> aiohttp.web.Response:
try:
if exposed.auth_required:
- user = request.headers.get("X-KVMD-User", "")
- passwd = request.headers.get("X-KVMD-Passwd", "")
+ user = request.headers.get(_HEADER_AUTH_USER, "")
+ passwd = request.headers.get(_HEADER_AUTH_PASSWD, "")
token = request.cookies.get(_COOKIE_AUTH_TOKEN, "")
if user: