dev@locazia: remove accept type whitelist

This commit is contained in:
user committed 2024-03-08 02:34:48 +03:00
1 parent a75dc3f31a
commit 88583ddc4e
3 files changed
+16 -2

No files matched your search

+1 -1
View File
@@ -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,