Skip to content
Snippets Groups Projects
Verified Commit 3b9e8e91 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

hashutil: Set the hash_names defaulting to swh default hash algo

parent 0e71ebfa
No related branches found
No related tags found
1 merge request!12model.hashutil: Open new endpoint to allow to hash stream
......@@ -67,7 +67,7 @@ class MultiHash:
computed and returned.
"""
def __init__(self, hash_names, length=None):
def __init__(self, hash_names=DEFAULT_ALGORITHMS, length=None):
self.state = {}
self.track_length = False
for name in hash_names:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment