element-hq / element-hq/matrix-content-scanner-python
Pushing text files result in a wrong mime type error
Open
- Dominant language
- Python
- Stars
- 25
- Forks
- 16
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 9
Description
**Describe the bug**
Using the following curl command :
```
curl -k -H 'Host: synapse.dev.local' -X POST --header 'Authorization: Bearer {user_access_token}' --header 'Content-Type: text/plain' --data-binary 'https://localhost/_matrix/media/v3/upload
```
When getting the file, Matrix content scanner returns the following error :
```
2023-09-27 16:21:04,922 - matrix_content_scanner.scanner.scanner - 518 - ERROR - GET-1348 - Mismatching MIME type (text/plain) and Content-Type header (text/plain; charset=UTF-8)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.