dev@locazia: remove accept type whitelist
This commit is contained in:
1 parent
a75dc3f31a
commit
88583ddc4e
3 files changed
+16
-2
No files matched your search
@@ -55,7 +55,7 @@ class ContentId:
|
||||
)
|
||||
assert cid_version == 1, "Invalid version"
|
||||
content_type = accept_type.split('/')
|
||||
assert '/'.join(content_type[0:2]) in ALLOWED_CONTENT_TYPES, "Invalid accept type"
|
||||
# assert '/'.join(content_type[0:2]) in ALLOWED_CONTENT_TYPES, "Invalid accept type"
|
||||
assert len(content_sha256) == 32, "Invalid hash length"
|
||||
return cls(
|
||||
content_hash=content_sha256,
|
||||
|
||||
Reference in new issue
Block a user