mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
Former-commit-id: 6f94a79d9ce3ac9b2b05d1e2637059996a02df1d
This commit is contained in:
@@ -1553,8 +1553,7 @@ func (ctx *context) ContentType(cType string) {
|
||||
// if doesn't contain a charset already then append it
|
||||
if !strings.Contains(cType, "charset") {
|
||||
if cType != ContentBinaryHeaderValue {
|
||||
charset := ctx.Application().ConfigurationReadOnly().GetCharset()
|
||||
cType += "; charset=" + charset
|
||||
cType += "; charset=" + ctx.Application().ConfigurationReadOnly().GetCharset()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1940,6 +1939,7 @@ func (ctx *context) UploadFormFiles(destDirectory string, before ...func(Context
|
||||
n += n0
|
||||
}
|
||||
}
|
||||
return n, nil
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user