1
0
mirror of https://github.com/kataras/iris.git synced 2026-02-08 03:35:59 +00:00

Add a better check for domain persistance on sessions - add the community members names who helped on website & logo on README

This commit is contained in:
Gerasimos Maropoulos
2016-07-30 17:24:12 +03:00
parent 6f83c48a10
commit 08e6ea31de
4 changed files with 37 additions and 9 deletions

View File

@@ -569,6 +569,7 @@ func (ctx *Context) TemplateString(name string, binding interface{}, options ...
// HTML writes html string with a http status
func (ctx *Context) HTML(status int, htmlContents string) {
if err := ctx.RenderWithStatus(status, contentHTML, htmlContents); err != nil {
// if no response engine found for text/html
ctx.SetContentType(contentHTML + "; charset=" + ctx.framework.Config.Charset)
ctx.RequestCtx.SetStatusCode(status)
ctx.RequestCtx.WriteString(htmlContents)