diff --git a/fs.go b/fs.go index ff4d5ac..7314062 100644 --- a/fs.go +++ b/fs.go @@ -823,7 +823,9 @@ func (h *fsHandler) handleRequest(ctx *RequestCtx) { } } } - ctx.SetContentType(ff.contentType) + if len(ctx.Response.Header.ContentType()) == 0 { + ctx.SetContentType(ff.contentType) + } ctx.SetStatusCode(statusCode) }