mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
3a7a743bc4
Currently, When `/etc/mime.types` has a unusual mime type, web of prometheus uses the type and you may get unexpected result. With this change, web returns consistent Content-Type header for static js and css files To reproduce: 1. Add a type at the end of `/etc/mime` like `text/x-js js` 2. Run prometheus 3. Request js file like `http://localhost:9090/static/vendor/js/jquery.min.js` 4. You will see Content-Type of the response is `text/x-js` instead of `application/javascript` Signed-off-by: mrasu <m.rasu.hitsuji@gmail.com> |
||
---|---|---|
.. | ||
api | ||
ui | ||
federate.go | ||
federate_test.go | ||
web.go | ||
web_test.go |