util: Use constexpr for ALPN id
This commit is contained in:
parent
2224b98c9c
commit
2ca8cf36b7
|
@ -52,11 +52,11 @@ namespace nghttp2 {
|
|||
// The additional HTTP/2 protocol ALPN protocol identifier we also
|
||||
// supports for our applications to make smooth migration into final
|
||||
// h2 ALPN ID.
|
||||
#define NGHTTP2_H2_16_ALPN "\x5h2-16"
|
||||
#define NGHTTP2_H2_16 "h2-16"
|
||||
constexpr const char NGHTTP2_H2_16_ALPN[] = "\x5h2-16";
|
||||
constexpr const char NGHTTP2_H2_16[] = "h2-16";
|
||||
|
||||
#define NGHTTP2_H2_14_ALPN "\x5h2-14"
|
||||
#define NGHTTP2_H2_14 "h2-14"
|
||||
constexpr const char NGHTTP2_H2_14_ALPN[] = "\x5h2-14";
|
||||
constexpr const char NGHTTP2_H2_14[] = "h2-14";
|
||||
|
||||
namespace util {
|
||||
|
||||
|
|
Loading…
Reference in New Issue