diff options
author | Nick Thomas <nick@gitlab.com> | 2018-03-07 14:42:06 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-03-07 14:42:06 +0300 |
commit | 0b69e09383eb22a8904bfed1479800d13f7325a4 (patch) | |
tree | 0f8ea29920e38e25112c5463ff3f85177b9d1fbb /app.go | |
parent | c7f4b31bbdc5ca966d63b96e5d9f514bce598c8a (diff) | |
parent | 06866d21fb6f6a9258843ef8929e9b26fb648090 (diff) |
Merge branch '30-extended-mimedb' into 'master'
Resolve "Respect all known mime types (or just text/cache-manifest)"
Closes #30
See merge request gitlab-org/gitlab-pages!57
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -10,6 +10,7 @@ import ( "sync" "time" + mimedb "github.com/lupine/go-mimedb" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" "github.com/rs/cors" @@ -199,6 +200,10 @@ func (a *theApp) Run() { } func runApp(config appConfig) { + if err := mimedb.LoadTypes(); err != nil { + log.Printf("WARNING: Loading extended MIME database failed: %v", err) + } + a := theApp{appConfig: config} if config.ArtifactsServer != "" { |