mirror of
https://github.com/kataras/iris.git
synced 2026-01-10 13:35:59 +00:00
fix #1829
This commit is contained in:
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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user