mirror of
https://github.com/kataras/iris.git
synced 2026-01-21 10:56:01 +00:00
This commit is contained in:
@@ -387,7 +387,10 @@ func (ctx *Context) SetContentType(s string) {
|
||||
}
|
||||
|
||||
// SetHeader write to the response writer's header to a given key the given value(s)
|
||||
//
|
||||
// Note: If you want to send a multi-line string as header's value use: strings.TrimSpace first.
|
||||
func (ctx *Context) SetHeader(k string, v string) {
|
||||
//v = strings.TrimSpace(v)
|
||||
ctx.RequestCtx.Response.Header.Set(k, v)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user