parent
4bdfb180d5
commit
e9746a1785
1 changed files with 1 additions and 1 deletions
|
|
@ -514,7 +514,7 @@ class HaikuRAG:
|
|||
raise ValueError(f"File does not exist: {source_path}")
|
||||
|
||||
uri = source_path.absolute().as_uri()
|
||||
md5_hash = hashlib.md5(source_path.read_bytes()).hexdigest()
|
||||
md5_hash = hashlib.md5(source_path.read_bytes(), usedforsecurity=False).hexdigest()
|
||||
|
||||
# Get content type from file extension (do before early return)
|
||||
content_type, _ = mimetypes.guess_type(str(source_path))
|
||||
|
|
|
|||
Loading…
Reference in a new issue