QHttpServerResponse test: don't hardcode mime types
Following 74ad4cbeef40b1f51a59b3168f8c0b62eb0b29c8, QMimeDatabase no
longer recognizes an SVG data stream as anything but XML.
Replace the hardcoded mime types. We can only promise that
QHttpServerResponse recognizes mime types as per QMimeDatabase, so
compare with what we get from it.
Fixes: QTBUG-127333
Pick-to: 6.8 6.7 6.5
Change-Id: I902561518c903b7b3e0e57937d472cdbf9c56858
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
| commit | 6e16fb068ebb7380d870f82859aca3ca584c4648 |
| parent | 29e7fc0bd22bab3f0df40cdf6e5074f7fc454c64 |
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> |
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> |
| commit time | Fri, 19 Jul 2024 08:04:19 +0000 |