Skip to content

Commit 2772238

Browse files
committed
WIP: Fix encoding must use bytes
1 parent b13b050 commit 2772238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm_supervisor/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ async def status_check_version(request: web.Request):
174174
def authenticate_api_request(request: web.Request) -> bool:
175175
"""Authenticate an API request to update the VM allocations.
176176
"""
177-
signature: str = request.headers.get('X-Auth-Signature')
177+
signature: bytes = request.headers.get('X-Auth-Signature').encode()
178178
# body: bytes = await request.read()
179179
if not signature:
180180
raise web.HTTPUnauthorized(text="Authentication token is missing")

0 commit comments

Comments
 (0)