This commit is contained in:
Gerasimos (Makis) Maropoulos 2021-12-31 14:55:20 +02:00
parent 4aa93ae872
commit 611e981f3a
No known key found for this signature in database
GPG Key ID: 66FCC29BD385FCA6
2 changed files with 1 additions and 4 deletions

1
.gitignore vendored
View File

@ -8,4 +8,5 @@ issue-*/
internalcode-*/
/_examples/feature-*/
_examples/**/uploads/*
_issues/**
.DS_STORE

View File

@ -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)
}