diff --git a/src/ngx_http_lua_sleep.c b/src/ngx_http_lua_sleep.c index 227f7348..2969493e 100644 --- a/src/ngx_http_lua_sleep.c +++ b/src/ngx_http_lua_sleep.c @@ -81,11 +81,6 @@ ngx_http_lua_ngx_sleep(lua_State *L) ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "lua ready to sleep for %d ms", delay); - if (ctx->entered_content_phase) { - dd("set write event handler"); - r->write_event_handler = ngx_http_lua_content_wev_handler; - } - return lua_yield(L, 0); } diff --git a/src/ngx_http_lua_subrequest.c b/src/ngx_http_lua_subrequest.c index 8a92d9a1..cb32cec4 100644 --- a/src/ngx_http_lua_subrequest.c +++ b/src/ngx_http_lua_subrequest.c @@ -519,7 +519,7 @@ ngx_http_lua_ngx_location_capture_multi(lua_State *L) ngx_http_set_ctx(sr, sr_ctx, ngx_http_lua_module); rc = ngx_http_lua_adjust_subrequest(sr, method, body, vars_action, - extra_vars); + extra_vars); if (rc != NGX_OK) { return luaL_error(L, "failed to adjust the subrequest: %d",