From 2d8652d7fbdd2a4e07bd694bf941e1eda332b5a4 Mon Sep 17 00:00:00 2001 From: Gerasimos Maropoulos Date: Thu, 15 Mar 2018 22:46:23 +0200 Subject: [PATCH] fix miss content type occurred by commenting this on the previous commit Former-commit-id: 3320cf863da92cb70f74b046a6a2475f83728932 --- core/router/fs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/router/fs.go b/core/router/fs.go index 3ee901ba..a8109ec5 100644 --- a/core/router/fs.go +++ b/core/router/fs.go @@ -829,7 +829,7 @@ func serveFile(ctx context.Context, fs http.FileSystem, name string, redirect bo // try to find and send the correct content type based on the filename // and the binary data inside "f". - // detectOrWriteContentType(ctx, d.Name(), f) + detectOrWriteContentType(ctx, d.Name(), f) return "", http.StatusOK }