Skip to content

Commit 26442bf

Browse files
committed
fix the build failed
1 parent b38298f commit 26442bf

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

chapters/003-ngx_lua_rewrite_by_lua.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ ngx_http_lua_rewrite_by_chunk(lua_State *L, ngx_http_request_t *r)
456456

457457
ngx_http_lua_loc_conf_t *llcf;
458458

459-
/* {{{ new coroutine to handle request */
459+
/* new coroutine to handle request */
460460
co = ngx_http_lua_new_thread(r, L, &co_ref);
461461

462462
if (co == NULL) {
@@ -476,7 +476,7 @@ ngx_http_lua_rewrite_by_chunk(lua_State *L, ngx_http_request_t *r)
476476
/* save nginx request in coroutine globals table */
477477
ngx_http_lua_set_req(co, r);
478478

479-
/* {{{ initialize request context */
479+
/* initialize request context */
480480
ctx = ngx_http_get_module_ctx(r, ngx_http_lua_module);
481481

482482
dd("ctx = %p", ctx);
@@ -496,9 +496,8 @@ ngx_http_lua_rewrite_by_chunk(lua_State *L, ngx_http_request_t *r)
496496
ctx->cur_co_ctx->co_top = 1;
497497
#endif
498498

499-
/* }}} */
500499

501-
/* {{{ register request cleanup hooks */
500+
/* register request cleanup hooks */
502501
if (ctx->cleanup == NULL) {
503502
cln = ngx_http_cleanup_add(r, 0);
504503
if (cln == NULL) {
@@ -509,7 +508,6 @@ ngx_http_lua_rewrite_by_chunk(lua_State *L, ngx_http_request_t *r)
509508
cln->data = ctx;
510509
ctx->cleanup = &cln->handler;
511510
}
512-
/* }}} */
513511

514512
ctx->context = NGX_HTTP_LUA_CONTEXT_REWRITE;
515513

0 commit comments

Comments
 (0)