We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2dcb0a commit 8406fb9Copy full SHA for 8406fb9
docling_serve/docling_conversion.py
@@ -58,7 +58,9 @@ def _hash_pdf_format_option(pdf_format_option: PdfFormatOption) -> bytes:
58
59
# Serialize the dictionary to JSON with sorted keys to have consistent hashes
60
serialized_data = json.dumps(data, sort_keys=True)
61
- options_hash = hashlib.sha1(serialized_data.encode()).digest()
+ options_hash = hashlib.sha1(
62
+ serialized_data.encode(), usedforsecurity=False
63
+ ).digest()
64
return options_hash
65
66
0 commit comments