Skip to content

Commit

Permalink
WIP: Fix encoding must use bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
hoh committed Sep 20, 2022
1 parent 6391116 commit 555dcc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm_supervisor/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ async def status_check_version(request: web.Request):
def authenticate_api_request(request: web.Request) -> bool:
"""Authenticate an API request to update the VM allocations.
"""
signature: str = request.headers.get('X-Auth-Signature')
signature: bytes = request.headers.get('X-Auth-Signature').encode()
# body: bytes = await request.read()
if not signature:
raise web.HTTPUnauthorized(text="Authentication token is missing")
Expand Down

0 comments on commit 555dcc8

Please sign in to comment.