From 458722df55bb9727680b7734e7fff8fb5639db28 Mon Sep 17 00:00:00 2001 From: Zhidao HONG Date: Sat, 1 Jul 2023 12:18:22 +0800 Subject: Var: supported HTTP response header variables. This commit adds the variable $response_header_NAME. --- src/nxt_h1proto.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/nxt_h1proto.h') diff --git a/src/nxt_h1proto.h b/src/nxt_h1proto.h index f8500963..b324db8d 100644 --- a/src/nxt_h1proto.h +++ b/src/nxt_h1proto.h @@ -51,4 +51,7 @@ struct nxt_h1proto_s { nxt_conn_t *conn; }; +#define nxt_h1p_is_http11(h1p) \ + ((h1p)->parser.version.s.minor != '0') + #endif /* _NXT_H1PROTO_H_INCLUDED_ */ -- cgit