nghttpx: Add constexpr
This commit is contained in:
parent
228d92244a
commit
71012fe83a
|
@ -729,7 +729,8 @@ int ClientHandler::perform_http2_upgrade(HttpsUpstream *http) {
|
||||||
on_read_ = &ClientHandler::upstream_http2_connhd_read;
|
on_read_ = &ClientHandler::upstream_http2_connhd_read;
|
||||||
write_ = &ClientHandler::write_clear;
|
write_ = &ClientHandler::write_clear;
|
||||||
|
|
||||||
static char res[] = "HTTP/1.1 101 Switching Protocols\r\n"
|
static constexpr char res[] =
|
||||||
|
"HTTP/1.1 101 Switching Protocols\r\n"
|
||||||
"Connection: Upgrade\r\n"
|
"Connection: Upgrade\r\n"
|
||||||
"Upgrade: " NGHTTP2_CLEARTEXT_PROTO_VERSION_ID "\r\n"
|
"Upgrade: " NGHTTP2_CLEARTEXT_PROTO_VERSION_ID "\r\n"
|
||||||
"\r\n";
|
"\r\n";
|
||||||
|
|
Loading…
Reference in New Issue