Skip to content

Commit 5931d34

Browse files
authored
Update ngx_http_security_headers_module.c
fix compile failed without C99 support
1 parent 1a257f8 commit 5931d34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngx_http_security_headers_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ ngx_http_security_headers_filter(ngx_http_request_t *r)
252252
h_server->hash = 0;
253253

254254
size_t hide_headers_count = sizeof(hide_headers) / sizeof(hide_headers[0]);
255-
256-
for (size_t i = 0; i < hide_headers_count; ++i) {
255+
size_t i;
256+
for (i = 0; i < hide_headers_count; ++i) {
257257
ngx_set_headers_out_by_search(r, &hide_headers[i], &empty_val);
258258
}
259259
}

0 commit comments

Comments
 (0)