diff options
author | Devaev Maxim <[email protected]> | 2019-12-10 06:29:45 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-12-10 06:29:45 +0300 |
commit | 03e05af39acb78d23e9e0b42eefd4b4f0184daeb (patch) | |
tree | 399dae3a69539b0606c276565e6a49c05503b9f3 /kvmd | |
parent | fb2a9986d8af9c17dd96b27d4ce68e0ce6435f3c (diff) |
refactoring
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/apps/kvmd/server.py | 4 |
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: |