From 611e981f3a400b24565d9588b380a8423f0a4456 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Fri, 31 Dec 2021 14:55:20 +0200 Subject: [PATCH] fix #1829 --- .gitignore | 1 + context/context.go | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) 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) }