Skip to content

Commit 66fbf21

Browse files
authored
Merge pull request #5304 from raft-tech/hotfix/file-extension-bug
Hotfix FRA File Extension Bug
2 parents b653922 + cac435b commit 66fbf21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tdrs-backend/tdpservice/parsers/decoders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def get_suggested_decoder(cls, raw_file):
218218
"""Try and determine what decoder to use based on file encoding and magic numbers."""
219219
# We need to guarantee that the file pointer is at the first byte
220220
raw_file.seek(0)
221-
extension = os.path.splitext(raw_file.name)[-1]
221+
extension = os.path.splitext(raw_file.name)[-1].lower()
222222

223223
# If our file has size zero, use the extension to try and determine the correct decoder. Default to UTF8 in
224224
# the worst case.

0 commit comments

Comments
 (0)