Pluto
74b0647aa2
Fix json bytes content type detection ( #3941 )
...
Fixes order of content type detection strategies for byte-encoded jsons.
Before
```
json_bytes = json.dumps([{"example": "data"}]).encode("utf-8")
file_buffer = io.BytesIO(json_bytes)
detect_filetype(file=file_buffer, metadata_file_path="filename.pdf")
```
Before
PDF
Now
JSON
2025-03-07 10:33:33 +00:00
..
2025-03-07 10:33:33 +00:00
2024-10-31 16:52:27 +00:00
2025-01-24 15:31:02 +00:00
2025-03-07 10:33:33 +00:00
2024-08-31 05:21:40 +00:00
2025-03-07 10:33:33 +00:00
2024-04-04 19:58:23 +00:00
2025-03-07 10:33:33 +00:00
2024-05-30 15:08:10 +00:00
2025-03-07 10:33:33 +00:00
2024-04-04 19:58:23 +00:00
2025-03-07 10:33:33 +00:00
2024-04-04 19:58:23 +00:00
2025-03-07 10:33:33 +00:00
2024-05-30 15:08:10 +00:00
2025-03-07 10:33:33 +00:00
2024-08-23 14:17:29 -07:00
2025-03-07 10:33:33 +00:00
2024-04-04 19:58:23 +00:00
2025-03-07 10:33:33 +00:00
2025-02-11 17:39:16 +00:00
2025-03-07 10:33:33 +00:00
2024-08-06 18:48:15 +00:00
2025-03-07 10:33:33 +00:00
2024-04-04 19:58:23 +00:00
2025-03-07 10:33:33 +00:00
2024-04-04 19:58:23 +00:00
2025-03-07 10:33:33 +00:00
2025-02-19 17:23:31 +00:00
2024-12-16 23:01:22 +00:00
2025-03-07 10:33:33 +00:00