summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2018-11-06 05:53:44 +1100
committerGitHub <noreply@github.com>2018-11-06 05:53:44 +1100
commitefdcbbe46bfe39f0dd3ef508bb08c37326892adc (patch)
tree79aa5f81a6c652e4b874b4083813d3928f82d21b /synapse
parentAdd some tests for the HTTP pusher (#4149) (diff)
downloadsynapse-efdcbbe46bfe39f0dd3ef508bb08c37326892adc.tar.xz
Tests for user consent resource (#4140)
Diffstat (limited to 'synapse')
-rw-r--r--synapse/rest/consent/consent_resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/consent/consent_resource.py b/synapse/rest/consent/consent_resource.py
index 89b82b0591..c85e84b465 100644
--- a/synapse/rest/consent/consent_resource.py
+++ b/synapse/rest/consent/consent_resource.py
@@ -227,7 +227,7 @@ class ConsentResource(Resource):
             key=self._hmac_secret,
             msg=userid.encode('utf-8'),
             digestmod=sha256,
-        ).hexdigest()
+        ).hexdigest().encode('ascii')
 
         if not compare_digest(want_mac, userhmac):
             raise SynapseError(http_client.FORBIDDEN, "HMAC incorrect")