summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_request.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_http_request.c')
-rw-r--r--src/nxt_http_request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_http_request.c b/src/nxt_http_request.c
index d1a30f0e..2d6ccb42 100644
--- a/src/nxt_http_request.c
+++ b/src/nxt_http_request.c
@@ -282,7 +282,7 @@ nxt_http_request_header_send(nxt_task_t *task, nxt_http_request_t *r)
(nxt_atomic_uint_t) -1,
nxt_http_date,
"%s, %02d %s %4d %02d:%02d:%02d GMT",
- sizeof("Wed, 31 Dec 1986 16:40:00 GMT") - 1,
+ nxt_length("Wed, 31 Dec 1986 16:40:00 GMT"),
NXT_THREAD_TIME_GMT,
NXT_THREAD_TIME_SEC,
};