summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_request.c
diff options
context:
space:
mode:
authorZhidao HONG <z.hong@f5.com>2023-08-09 14:37:16 +0800
committerZhidao HONG <z.hong@f5.com>2023-08-09 14:37:16 +0800
commita28bef097cd63da3bbb375ef0283e65be41a88ff (patch)
tree8553e74c050a9747bdba928cbaec82ee6d15cb5d /src/nxt_http_request.c
parent9f04d6db630a22658581cbe7a9d28ecdb13d8de9 (diff)
downloadunit-a28bef097cd63da3bbb375ef0283e65be41a88ff.tar.gz
unit-a28bef097cd63da3bbb375ef0283e65be41a88ff.tar.bz2
HTTP: controlling response headers support.
Diffstat (limited to 'src/nxt_http_request.c')
-rw-r--r--src/nxt_http_request.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nxt_http_request.c b/src/nxt_http_request.c
index 1ede9ffa..e532baff 100644
--- a/src/nxt_http_request.c
+++ b/src/nxt_http_request.c
@@ -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.