Commit 813e5a3
committed
fix: prioritize extension-based detection over content sniffing in _get_filetype
Move extension check before content-based detection to ensure
deterministic behavior across Python versions. Content-based detection
in unstructured 0.18.18 may return TXT for plain text content, which
could mask the actual file type indicated by the extension.
Co-Authored-By: unknown <>1 parent 5594c29 commit 813e5a3
1 file changed
Lines changed: 6 additions & 6 deletions
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | 427 | | |
434 | 428 | | |
435 | 429 | | |
436 | 430 | | |
437 | 431 | | |
438 | 432 | | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| |||
0 commit comments