]> git.kaiwu.me - nginx.git/commitdiff
Perl: removed unneeded NGX_DONE test.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 11 Jul 2019 20:20:08 +0000 (23:20 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 11 Jul 2019 20:20:08 +0000 (23:20 +0300)
The NGX_DONE test in ngx_http_perl_handle_request() was introduced
in 1702:86bb52e28ce0, which also modified ngx_http_perl_call_handler()
to return NGX_DONE with c->destroyed.  The latter part was then
removed in 3050:f54b02dbb12b, so NGX_DONE test is no longer needed.

src/http/modules/perl/ngx_http_perl_module.c

index 6d3be9128099c53667a38efa3da26fa6f50496df..d06b43c7584ceab9220d019e0f1fc7ef7a5c1f2c 100644 (file)
@@ -228,11 +228,6 @@ ngx_http_perl_handle_request(ngx_http_request_t *r)
     ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
                    "perl handler done: %i", rc);
 
-    if (rc == NGX_DONE) {
-        ngx_http_finalize_request(r, rc);
-        return;
-    }
-
     if (rc > 600) {
         rc = NGX_OK;
     }