Commit 02379dcb authored by Tom Niget's avatar Tom Niget

bug: fix wrong sending of HMAC header causing test failure

parent 5ab62c63
......@@ -328,7 +328,7 @@ class RegistryServer:
request.send_response(http.client.NO_CONTENT)
if key:
request.send_header(HMAC_HEADER, base64.b64encode(
hmac.HMAC(key, result, hashlib.sha1).digest()))
hmac.HMAC(key, result, hashlib.sha1).digest()).decode("ascii"))
request.end_headers()
if result:
request.wfile.write(result)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment