fix: serve WebP with a portable MIME type

This commit is contained in:
nyan404 committed 2026-11-17 16:34:10 +03:00
1 parent d182cd30fa
commit 30d012de80
5 files changed
+23 -1

No files matched your search

+1
View File
@@ -27,6 +27,7 @@
- Weather easter egg: `python -m unittest discover -s tests -p test_weather.py -q` and `node --check web/weather-effect.js`; inspect `/belki` and `/admin` with rain/snow/mixed fixtures, mobile widths, reduced motion, and API failure. Prefer the remote test-zone MCP when exposed; otherwise use an isolated local server with temporary SQLite paths and stop it after validation. Keep screenshots outside the repo.
- For CI-only changes, prefer a targeted YAML parse and a diff review.
- For image/runtime changes, check the `Dockerfile`, Python entrypoint, static asset serving, and CI job together.
- Python 3.12 slim does not recognize WebP in strict `mimetypes.guess_type()` without system MIME data. Keep the explicit `image/webp` response in `Handler._file`; `tests.test_lu_trainer` covers a missing MIME mapping. Do not rely only on workstation MIME tables when adding media formats.
- For k3s changes, validate YAML and current cluster inventory first; keep `KUBE_CONFIG_B64` masked/protected in GitLab.
- Do not add unnecessary local build artifacts or temporary files to the repository.
- Admin report UI changes should cover both the persisted history flag and browser behavior: run the focused history/admin filter tests, Python compilation, `git diff --check`, and a JavaScript syntax check for `web/admin.html`. The report list defaults to the calendar current month; do not silently replace the existing sort order.