mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:20:55 +00:00
Update output.go
This commit is contained in:
parent
f0d1d7149b
commit
2f6da122fd
@ -71,8 +71,6 @@ func (output *BeegoOutput) Body(content []byte) error {
|
||||
} else {
|
||||
output.Header("Content-Length", strconv.Itoa(len(content)))
|
||||
}
|
||||
|
||||
|
||||
// Write status code if it has been set manually
|
||||
// Set it to 0 afterwards to prevent "multiple response.WriteHeader calls"
|
||||
if output.Status != 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user