Skip to content

Commit be3dd61

Browse files
author
Felipe Zimmerle
committed
nginx: cosmetics: Removes trailing whitespace
1 parent 2b822f8 commit be3dd61

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

nginx/modsecurity/ngx_http_modsecurity.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
#define tuxb
5757

58-
/*
58+
/*
5959
* If NGX_HTTP_MODSECURITY_PREACCESS_HANDLER_ONLY is defined, this module will
6060
* not process the body and header filter, instead it will only process the
6161
* preaccess request handler. This is useful to debug the module and check if
@@ -1230,7 +1230,7 @@ ngx_http_modsecurity_header_filter(ngx_http_request_t *r) {
12301230
ctx = ngx_http_get_module_ctx(r, ngx_http_modsecurity);
12311231

12321232
/* already processed, checking redirect action. */
1233-
if (ctx && ctx->complete
1233+
if (ctx && ctx->complete
12341234
&& r->err_status >= NGX_HTTP_MOVED_PERMANENTLY
12351235
&& r->err_status < 308) {
12361236

@@ -1296,12 +1296,12 @@ ngx_http_modsecurity_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
12961296
if (size) {
12971297
char *data = apr_pmemdup(bb->p, buf->pos, size);
12981298
if (data == NULL) {
1299-
return ngx_http_filter_finalize_request(r,
1299+
return ngx_http_filter_finalize_request(r,
13001300
&ngx_http_modsecurity, NGX_HTTP_INTERNAL_SERVER_ERROR);
13011301
}
13021302
e = apr_bucket_pool_create(data , size, bb->p, bb->bucket_alloc);
13031303
if (e == NULL) {
1304-
return ngx_http_filter_finalize_request(r,
1304+
return ngx_http_filter_finalize_request(r,
13051305
&ngx_http_modsecurity, NGX_HTTP_INTERNAL_SERVER_ERROR);
13061306
}
13071307
APR_BRIGADE_INSERT_TAIL(bb, e);
@@ -1312,7 +1312,7 @@ ngx_http_modsecurity_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
13121312
buf->last_buf = 0;
13131313
e = apr_bucket_eos_create(bb->bucket_alloc);
13141314
if (e == NULL) {
1315-
return ngx_http_filter_finalize_request(r,
1315+
return ngx_http_filter_finalize_request(r,
13161316
&ngx_http_modsecurity, NGX_HTTP_INTERNAL_SERVER_ERROR);
13171317
}
13181318
APR_BRIGADE_INSERT_TAIL(bb, e);
@@ -1333,7 +1333,7 @@ ngx_http_modsecurity_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
13331333
if (ngx_http_modsecurity_load_headers_in(r) != NGX_OK
13341334
|| ngx_http_modsecurity_load_headers_out(r) != NGX_OK) {
13351335

1336-
return ngx_http_filter_finalize_request(r,
1336+
return ngx_http_filter_finalize_request(r,
13371337
&ngx_http_modsecurity, NGX_HTTP_INTERNAL_SERVER_ERROR);
13381338
}
13391339

@@ -1350,7 +1350,7 @@ ngx_http_modsecurity_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
13501350
ngx_log_debug(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
13511351
"ModSec: Problems moving brigade to chain");
13521352

1353-
return ngx_http_filter_finalize_request(r,
1353+
return ngx_http_filter_finalize_request(r,
13541354
&ngx_http_modsecurity, NGX_HTTP_INTERNAL_SERVER_ERROR);
13551355
}
13561356

@@ -1365,7 +1365,7 @@ ngx_http_modsecurity_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
13651365
"ModSecurity: save headers out done _inside_");
13661366

13671367

1368-
return ngx_http_filter_finalize_request(r,
1368+
return ngx_http_filter_finalize_request(r,
13691369
&ngx_http_modsecurity, NGX_HTTP_INTERNAL_SERVER_ERROR);
13701370
}
13711371

nginx/modsecurity/ngx_pool_context.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ ngx_module_t ngx_pool_context_module = {
7070
} \
7171
\
7272
node->prev = NULL; \
73-
73+
7474

7575
#define ngx_pool_context_link(queue, node) \
7676
\

0 commit comments

Comments
 (0)