forked from mirrors/bookwyrm
Raise don't return an exception if digest is wrong.
This commit is contained in:
parent
1b2fb445ca
commit
54f381c1d8
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ def verify_digest(request):
|
|||
|
||||
expected = hash_function(request.body).digest()
|
||||
if b64decode(digest) != expected:
|
||||
return ValueError("Invalid HTTP Digest header")
|
||||
raise ValueError("Invalid HTTP Digest header")
|
||||
|
||||
class Signature:
|
||||
def __init__(self, key_id, headers, signature):
|
||||
|
|
Loading…
Reference in a new issue