Commit 5e6197fb authored by Tom Niget's avatar Tom Niget

bug: fix wrong sending of HMAC header causing test failure

parent aa9a4c15
...@@ -328,7 +328,7 @@ class RegistryServer: ...@@ -328,7 +328,7 @@ class RegistryServer:
request.send_response(http.client.NO_CONTENT) request.send_response(http.client.NO_CONTENT)
if key: if key:
request.send_header(HMAC_HEADER, base64.b64encode( 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() request.end_headers()
if result: if result:
request.wfile.write(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