diff options
-rw-r--r-- | src/go/unit/request.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/go/unit/request.go b/src/go/unit/request.go index 4a839bdb..3d313ce2 100644 --- a/src/go/unit/request.go +++ b/src/go/unit/request.go @@ -46,6 +46,10 @@ func (r *request) response() *response { } func (r *request) done() { + resp := r.response() + if !resp.headerSent { + resp.WriteHeader(http.StatusOK) + } C.nxt_go_request_done(r.c_req) } |