mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +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-*/
|
internalcode-*/
|
||||||
/_examples/feature-*/
|
/_examples/feature-*/
|
||||||
_examples/**/uploads/*
|
_examples/**/uploads/*
|
||||||
|
_issues/**
|
||||||
.DS_STORE
|
.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)
|
http.ServeContent(ctx.writer, ctx.request, filename, modtime, content)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user