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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user