mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 18:50:54 +00:00
Update ctx.WriteString multiple buf output
This commit is contained in:
parent
20463fa725
commit
75e2611cc4
@ -62,7 +62,7 @@ func (ctx *Context) Abort(status int, body string) {
|
|||||||
// Write string to response body.
|
// Write string to response body.
|
||||||
// it sends response body.
|
// it sends response body.
|
||||||
func (ctx *Context) WriteString(content string) {
|
func (ctx *Context) WriteString(content string) {
|
||||||
ctx.Output.Body([]byte(content))
|
ctx.ResponseWriter.Write([]byte(content))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get cookie from request by a given key.
|
// Get cookie from request by a given key.
|
||||||
|
Loading…
Reference in New Issue
Block a user