Skip to content

Commit 5b6773f

Browse files
committed
corrected abbreviation used for response
1 parent 04eeec0 commit 5b6773f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ server {
203203
}
204204
```
205205

206-
modsecurity_skip_res_body_filter
206+
modsecurity_skip_resp_body_filter
207207
-----------------
208-
**syntax:** *modsecurity_skip_res_body_filter on | off*
208+
**syntax:** *modsecurity_skip_resp_body_filter on | off*
209209

210210
**context:** *http, server, location*
211211

@@ -225,7 +225,7 @@ server {
225225
226226
location = /special/unchecked/path {
227227
# skip the inspection of the response body
228-
modsecurity_skip_res_body_filter on;
228+
modsecurity_skip_resp_body_filter on;
229229
}
230230
}
231231
```

src/ngx_http_modsecurity_body_filter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ ngx_http_modsecurity_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
5757
return NGX_HTTP_INTERNAL_SERVER_ERROR;
5858
}
5959

60-
if (mcf->skip_res_body_filter) {
60+
if (mcf->skip_resp_body_filter) {
6161
dd("Skipping response body filter");
6262
return ngx_http_next_body_filter(r, in);
6363
}

src/ngx_http_modsecurity_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ typedef struct {
124124

125125
ngx_http_complex_value_t *transaction_id;
126126
ngx_flag_t skip_req_body_filter;
127-
ngx_flag_t skip_res_body_filter;
127+
ngx_flag_t skip_resp_body_filter;
128128
} ngx_http_modsecurity_conf_t;
129129

130130

src/ngx_http_modsecurity_module.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,11 +522,11 @@ static ngx_command_t ngx_http_modsecurity_commands[] = {
522522
NULL
523523
},
524524
{
525-
ngx_string("modsecurity_skip_res_body_filter"),
525+
ngx_string("modsecurity_skip_resp_body_filter"),
526526
NGX_HTTP_LOC_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_MAIN_CONF|NGX_CONF_FLAG,
527527
ngx_conf_set_flag_slot,
528528
NGX_HTTP_LOC_CONF_OFFSET,
529-
offsetof(ngx_http_modsecurity_conf_t, skip_res_body_filter),
529+
offsetof(ngx_http_modsecurity_conf_t, skip_resp_body_filter),
530530
NULL
531531
},
532532
ngx_null_command
@@ -741,7 +741,7 @@ ngx_http_modsecurity_create_conf(ngx_conf_t *cf)
741741
conf->pool = cf->pool;
742742
conf->transaction_id = NGX_CONF_UNSET_PTR;
743743
conf->skip_req_body_filter = NGX_CONF_UNSET;
744-
conf->skip_res_body_filter = NGX_CONF_UNSET;
744+
conf->skip_resp_body_filter = NGX_CONF_UNSET;
745745
#if defined(MODSECURITY_SANITY_CHECKS) && (MODSECURITY_SANITY_CHECKS)
746746
conf->sanity_checks_enabled = NGX_CONF_UNSET;
747747
#endif
@@ -782,7 +782,7 @@ ngx_http_modsecurity_merge_conf(ngx_conf_t *cf, void *parent, void *child)
782782
ngx_conf_merge_value(c->enable, p->enable, 0);
783783
ngx_conf_merge_ptr_value(c->transaction_id, p->transaction_id, NULL);
784784
ngx_conf_merge_value(c->skip_req_body_filter, p->skip_req_body_filter, 0);
785-
ngx_conf_merge_value(c->skip_res_body_filter, p->skip_res_body_filter, 0);
785+
ngx_conf_merge_value(c->skip_resp_body_filter, p->skip_resp_body_filter, 0);
786786
#if defined(MODSECURITY_SANITY_CHECKS) && (MODSECURITY_SANITY_CHECKS)
787787
ngx_conf_merge_value(c->sanity_checks_enabled, p->sanity_checks_enabled, 0);
788788
#endif

0 commit comments

Comments
 (0)