Skip to content

Commit b67632c

Browse files
committed
clean code
1 parent 9e22a9f commit b67632c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/ngx_http_c_func_module.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,7 @@ typedef struct {
8787
typedef struct {
8888
unsigned done: 1;
8989
unsigned waiting_more_body: 1;
90-
91-
/*** For store Response ***/
92-
size_t resp_len;
93-
u_char *resp;
94-
unsigned aio_processing: 1;
90+
unsigned aio_processing: 1;
9591

9692
/**resp ctx**/
9793
uintptr_t status_code;
@@ -1186,7 +1182,6 @@ ngx_http_c_func_rewrite_handler(ngx_http_request_t *r) {
11861182
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "Insufficient Memory to create ngx_http_c_func_internal_ctx_t");
11871183
return NGX_HTTP_INTERNAL_SERVER_ERROR;
11881184
}
1189-
ctx->resp = NULL;
11901185
ctx->rc = NGX_CONF_UNSET;
11911186

11921187
ngx_http_set_ctx(r, ctx, ngx_http_c_func_module);
@@ -1217,7 +1212,6 @@ ngx_http_c_func_rewrite_handler(ngx_http_request_t *r) {
12171212
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "Insufficient Memory to create ngx_http_c_func_internal_ctx_t");
12181213
return NGX_HTTP_INTERNAL_SERVER_ERROR;
12191214
}
1220-
ctx->resp = NULL;
12211215
ctx->rc = NGX_CONF_UNSET;
12221216
ngx_http_set_ctx(r, ctx, ngx_http_c_func_module);
12231217
}

0 commit comments

Comments
 (0)