Skip to content

Commit 436d5c3

Browse files
Merge pull request chrismattmann#439 from matt-dies-tenet3/master
Fixing the filepath used if the TIKA_JAR_HASH_ALGO env var is used
2 parents eddf40c + 2230b78 commit 436d5c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tika/tika.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def checkJarSig(tikaServerJar, jarPath):
618618
with open(jarPath, 'rb') as f:
619619
binContents = f.read()
620620
m.update(binContents)
621-
with open(jarPath + ".md5", "r") as em:
621+
with open(f"{jarPath}.{TikaJarHashAlgo}", "r") as em:
622622
existingContents = em.read()
623623
return existingContents == m.hexdigest()
624624

0 commit comments

Comments
 (0)