1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-21 10:56:01 +00:00
This commit is contained in:
Makis Maropoulos
2016-06-19 10:32:20 +03:00
parent 15139e33b7
commit 39e1504ba3
3 changed files with 13 additions and 8 deletions

View File

@@ -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)
}