element-hq / element-hq/matrix-content-scanner-python

Pushing text files result in a wrong mime type error

Aperta
#48 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
25
Fork
16
Merge medio
3g 1h
PR unite (30g)
9

Descrizione

**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)
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.