HTTP: controlling response headers support.

This commit is contained in:
Zhidao HONG
2023-08-09 14:37:16 +08:00
parent 9f04d6db63
commit a28bef097c
8 changed files with 245 additions and 1 deletions

View File

@@ -630,9 +630,15 @@ nxt_http_request_header_send(nxt_task_t *task, nxt_http_request_t *r,
nxt_work_handler_t body_handler, void *data)
{
u_char *p, *end, *server_string;
nxt_int_t ret;
nxt_http_field_t *server, *date, *content_length;
nxt_socket_conf_t *skcf;
ret = nxt_http_set_headers(r);
if (nxt_slow_path(ret != NXT_OK)) {
goto fail;
}
/*
* TODO: "Server", "Date", and "Content-Length" processing should be moved
* to the last header filter.