prometheus/web
mrasu 3a7a743bc4 Consistent Content-Type for js and css (#5551)
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>
2019-05-09 16:10:15 +01:00
..
api *: enable all default linters (#5504) 2019-05-03 15:11:28 +02:00
ui web/ui: update to Bootstrap 4.3.1 (#5506) 2019-04-30 10:16:36 +02:00
federate.go *: enable all default linters (#5504) 2019-05-03 15:11:28 +02:00
federate_test.go Fix staticcheck errors 2019-04-17 01:40:10 +02:00
web.go Consistent Content-Type for js and css (#5551) 2019-05-09 16:10:15 +01:00
web_test.go Add rendering test of template based web endpoints (#5188) 2019-02-08 10:17:47 +00:00