Skip to content

Commit be595e7

Browse files
committed
corrected abbreviation used for response
1 parent af17ac8 commit be595e7

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ server {
212212
}
213213
```
214214

215-
modsecurity_skip_res_body_filter
215+
modsecurity_skip_resp_body_filter
216216
-----------------
217-
**syntax:** *modsecurity_skip_res_body_filter on | off*
217+
**syntax:** *modsecurity_skip_resp_body_filter on | off*
218218

219219
**context:** *http, server, location*
220220

@@ -234,7 +234,7 @@ server {
234234
235235
location = /special/unchecked/path {
236236
# skip the inspection of the response body
237-
modsecurity_skip_res_body_filter on;
237+
modsecurity_skip_resp_body_filter on;
238238
}
239239
}
240240
```

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
@@ -125,7 +125,7 @@ typedef struct {
125125

126126
ngx_http_complex_value_t *transaction_id;
127127
ngx_flag_t skip_req_body_filter;
128-
ngx_flag_t skip_res_body_filter;
128+
ngx_flag_t skip_resp_body_filter;
129129
} ngx_http_modsecurity_conf_t;
130130

131131

src/ngx_http_modsecurity_module.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -535,11 +535,11 @@ static ngx_command_t ngx_http_modsecurity_commands[] = {
535535
NULL
536536
},
537537
{
538-
ngx_string("modsecurity_skip_res_body_filter"),
538+
ngx_string("modsecurity_skip_resp_body_filter"),
539539
NGX_HTTP_LOC_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_MAIN_CONF|NGX_CONF_FLAG,
540540
ngx_conf_set_flag_slot,
541541
NGX_HTTP_LOC_CONF_OFFSET,
542-
offsetof(ngx_http_modsecurity_conf_t, skip_res_body_filter),
542+
offsetof(ngx_http_modsecurity_conf_t, skip_resp_body_filter),
543543
NULL
544544
},
545545
ngx_null_command
@@ -738,7 +738,7 @@ ngx_http_modsecurity_create_conf(ngx_conf_t *cf)
738738
conf->transaction_id = NGX_CONF_UNSET_PTR;
739739
conf->use_error_log = NGX_CONF_UNSET;
740740
conf->skip_req_body_filter = NGX_CONF_UNSET;
741-
conf->skip_res_body_filter = NGX_CONF_UNSET;
741+
conf->skip_resp_body_filter = NGX_CONF_UNSET;
742742
#if defined(MODSECURITY_SANITY_CHECKS) && (MODSECURITY_SANITY_CHECKS)
743743
conf->sanity_checks_enabled = NGX_CONF_UNSET;
744744
#endif
@@ -780,7 +780,7 @@ ngx_http_modsecurity_merge_conf(ngx_conf_t *cf, void *parent, void *child)
780780
ngx_conf_merge_ptr_value(c->transaction_id, p->transaction_id, NULL);
781781
ngx_conf_merge_value(c->use_error_log, p->use_error_log, 1);
782782
ngx_conf_merge_value(c->skip_req_body_filter, p->skip_req_body_filter, 0);
783-
ngx_conf_merge_value(c->skip_res_body_filter, p->skip_res_body_filter, 0);
783+
ngx_conf_merge_value(c->skip_resp_body_filter, p->skip_resp_body_filter, 0);
784784
#if defined(MODSECURITY_SANITY_CHECKS) && (MODSECURITY_SANITY_CHECKS)
785785
ngx_conf_merge_value(c->sanity_checks_enabled, p->sanity_checks_enabled, 0);
786786
#endif

0 commit comments

Comments
 (0)