mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 02:31:04 +01:00
fix #1829
This commit is contained in:
parent
4aa93ae872
commit
611e981f3a
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -8,4 +8,5 @@ issue-*/
|
|||
internalcode-*/
|
||||
/_examples/feature-*/
|
||||
_examples/**/uploads/*
|
||||
_issues/**
|
||||
.DS_STORE
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user