prometheus/vendor
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
..
cloud.google.com/go
contrib.go.opencensus.io/exporter/ocagent
github.com Consistent Content-Type for js and css (#5551) 2019-05-09 16:10:15 +01:00
go.opencensus.io
golang.org/x
google.golang.org
gopkg.in
k8s.io
sigs.k8s.io/yaml
modules.txt Consistent Content-Type for js and css (#5551) 2019-05-09 16:10:15 +01:00