We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b653922 + cac435b commit 66fbf21Copy full SHA for 66fbf21
tdrs-backend/tdpservice/parsers/decoders.py
@@ -218,7 +218,7 @@ def get_suggested_decoder(cls, raw_file):
218
"""Try and determine what decoder to use based on file encoding and magic numbers."""
219
# We need to guarantee that the file pointer is at the first byte
220
raw_file.seek(0)
221
- extension = os.path.splitext(raw_file.name)[-1]
+ extension = os.path.splitext(raw_file.name)[-1].lower()
222
223
# If our file has size zero, use the extension to try and determine the correct decoder. Default to UTF8 in
224
# the worst case.
0 commit comments