diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nodejs/unit-http/unit.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nodejs/unit-http/unit.cpp b/src/nodejs/unit-http/unit.cpp index 64e076c1..975174d4 100644 --- a/src/nodejs/unit-http/unit.cpp +++ b/src/nodejs/unit-http/unit.cpp @@ -812,8 +812,7 @@ Unit::response_write(napi_env env, napi_callback_info info) /* TODO: will work only for utf8 content-type */ if (req->response_buf != NULL - && (req->response_buf->end - req->response_buf->free) - >= buf_len) + && req->response_buf->end >= req->response_buf->free + buf_len) { buf = req->response_buf; |