summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_upstream_source.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_upstream_source.h')
-rw-r--r--src/nxt_upstream_source.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_upstream_source.h b/src/nxt_upstream_source.h
index 4189a356..143b8d0c 100644
--- a/src/nxt_upstream_source.h
+++ b/src/nxt_upstream_source.h
@@ -69,7 +69,7 @@ struct nxt_upstream_source_s {
#define NXT_UPSTREAM_NAME_VALUE_MIN_SIZE \
offsetof(nxt_http_upstream_header_t, name)
-#define nxt_upstream_name_value(s) sizeof(s) - 1, s
+#define nxt_upstream_name_value(s) nxt_length(s), s
NXT_EXPORT nxt_int_t nxt_upstream_header_hash_add(nxt_mp_t *mp,