Skip to content

Commit

Permalink
Overwrite existing headers
Browse files Browse the repository at this point in the history
  • Loading branch information
dvershinin committed Sep 1, 2019
1 parent a05de4a commit 48a8a7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ngx_http_security_headers_module.c
Expand Up @@ -157,6 +157,8 @@ ngx_http_security_headers_filter(ngx_http_request_t *r)
if (h_server == NULL) {
return NGX_ERROR;
}
ngx_str_set(&h_server->key, "Server");
ngx_str_set(&h_server->value, "");
r->headers_out.server = h_server;
}
h_server->hash = 0;
Expand Down

0 comments on commit 48a8a7a

Please sign in to comment.