util: Use constexpr for ALPN id

This commit is contained in:
Tatsuhiro Tsujikawa 2015-06-21 19:34:43 +09:00
parent 2224b98c9c
commit 2ca8cf36b7
1 changed files with 4 additions and 4 deletions

View File

@ -52,11 +52,11 @@ namespace nghttp2 {
// The additional HTTP/2 protocol ALPN protocol identifier we also // The additional HTTP/2 protocol ALPN protocol identifier we also
// supports for our applications to make smooth migration into final // supports for our applications to make smooth migration into final
// h2 ALPN ID. // h2 ALPN ID.
#define NGHTTP2_H2_16_ALPN "\x5h2-16" constexpr const char NGHTTP2_H2_16_ALPN[] = "\x5h2-16";
#define NGHTTP2_H2_16 "h2-16" constexpr const char NGHTTP2_H2_16[] = "h2-16";
#define NGHTTP2_H2_14_ALPN "\x5h2-14" constexpr const char NGHTTP2_H2_14_ALPN[] = "\x5h2-14";
#define NGHTTP2_H2_14 "h2-14" constexpr const char NGHTTP2_H2_14[] = "h2-14";
namespace util { namespace util {