@@ -456,7 +456,7 @@ ngx_http_lua_rewrite_by_chunk(lua_State *L, ngx_http_request_t *r)
456
456
457
457
ngx_http_lua_loc_conf_t *llcf;
458
458
459
- /* {{{ new coroutine to handle request */
459
+ /* new coroutine to handle request */
460
460
co = ngx_http_lua_new_thread(r, L, &co_ref);
461
461
462
462
if (co == NULL) {
@@ -476,7 +476,7 @@ ngx_http_lua_rewrite_by_chunk(lua_State *L, ngx_http_request_t *r)
476
476
/* save nginx request in coroutine globals table */
477
477
ngx_http_lua_set_req(co, r);
478
478
479
- /* {{{ initialize request context */
479
+ /* initialize request context */
480
480
ctx = ngx_http_get_module_ctx(r, ngx_http_lua_module);
481
481
482
482
dd("ctx = %p", ctx);
@@ -496,9 +496,8 @@ ngx_http_lua_rewrite_by_chunk(lua_State *L, ngx_http_request_t *r)
496
496
ctx->cur_co_ctx->co_top = 1;
497
497
#endif
498
498
499
- /* }}} */
500
499
501
- /* {{{ register request cleanup hooks */
500
+ /* register request cleanup hooks */
502
501
if (ctx->cleanup == NULL) {
503
502
cln = ngx_http_cleanup_add(r, 0);
504
503
if (cln == NULL) {
@@ -509,7 +508,6 @@ ngx_http_lua_rewrite_by_chunk(lua_State *L, ngx_http_request_t *r)
509
508
cln->data = ctx;
510
509
ctx->cleanup = &cln->handler;
511
510
}
512
- /* }}} */
513
511
514
512
ctx->context = NGX_HTTP_LUA_CONTEXT_REWRITE;
515
513
0 commit comments