diff --git a/.gitignore b/.gitignore index 651e21f4..2a8d7374 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ issue-*/ internalcode-*/ /_examples/feature-*/ _examples/**/uploads/* +_issues/** .DS_STORE diff --git a/context/context.go b/context/context.go index 28fa9ae8..535da6d4 100644 --- a/context/context.go +++ b/context/context.go @@ -4727,10 +4727,6 @@ func (ctx *Context) ServeContentWithRate(content io.ReadSeeker, filename string, } } - if ctx.GetContentType() == "" { - ctx.ContentType(filename) - } - http.ServeContent(ctx.writer, ctx.request, filename, modtime, content) }