chore(deps): bump golang from 1.16.6 to 1.17.0 in /.github/go (#185)
* chore(deps): bump golang from 1.16.6 to 1.17.0 in /.github/go Bumps golang from 1.16.6 to 1.17.0. --- updated-dependencies: - dependency-name: golang dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix: guard against writing HTTP Status 0 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
This commit is contained in:
@@ -77,7 +77,9 @@ func handlerBuilder(route model.Route) http.Handler {
|
||||
|
||||
// In case of the user not setting /request/body
|
||||
if !h.BodyOut {
|
||||
h.Writer.WriteHeader(h.Status)
|
||||
if h.Status != 0 {
|
||||
h.Writer.WriteHeader(h.Status)
|
||||
}
|
||||
h.BodyOut = true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user