fix bug Template Template compliance
This commit is contained in:
parent
0da7ea8ab1
commit
59eadf29d0
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ func (rs *Response) Template(name string, data interface{}) *Response {
|
|||
panic(fmt.Sprintf("error executing template: %v", err))
|
||||
}
|
||||
rs.contentType = CONTENT_TYPE_HTML
|
||||
buffer.WriteTo(rs.HttpResponseWriter)
|
||||
rs.body = buffer.Bytes()
|
||||
}
|
||||
return rs
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue