1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-03 07:03:27 +00:00

Update output.go

This commit is contained in:
kbynd 2017-01-02 09:17:17 +05:30 committed by GitHub
parent f0d1d7149b
commit 2f6da122fd

View File

@ -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 {