]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: add text/javascript to gzip mime types 70625/head
authorAfreen Misbah <afreen@ibm.com>
Tue, 28 Jul 2026 12:47:56 +0000 (18:17 +0530)
committerAfreen Misbah <afreen@ibm.com>
Tue, 28 Jul 2026 13:43:55 +0000 (19:13 +0530)
commit3a081d5cd0fb9de46d36f7d93176256cd6b5253b
tree7620083067d604fa4984a1bea054e4d4a729ab07
parent3c18e565701e4907c1ac7c48b87fc47800b27a8b
mgr/dashboard: add text/javascript to gzip mime types

CherryPy's serve_file() uses Python's mimetypes module which returns
text/javascript for .js files (RFC 9239), but the gzip config only
listed application/javascript. This meant the main Angular bundle
was being served uncompressed. With Cheroot write timeouts,
the uncompressed transfer times out over slower networks, causing
ERR_CONTENT_LENGTH_MISMATCH in the browser.

Signed-off-by: Afreen Misbah <afreen@ibm.com>
src/pybind/mgr/dashboard/module.py