element-hq / matrix-content-scanner-python

A web service for scanning media hosted by a Matrix media repository
Apache License 2.0
13 stars 9 forks source link

Remove check of matching claimed and detected MIME type #60

Closed MatMaul closed 3 months ago

MatMaul commented 4 months ago

It seems not necessary since we already check allowed MIME types against the detected type and not the claimed one.

It leads to quite a bunch of false positives since a lot of clients have trouble properly detecting the type.