diff --git a/src/shrpx_api_downstream_connection.cc b/src/shrpx_api_downstream_connection.cc index 063eed70..426ddf1c 100644 --- a/src/shrpx_api_downstream_connection.cc +++ b/src/shrpx_api_downstream_connection.cc @@ -41,7 +41,7 @@ namespace shrpx { namespace { // List of API endpoints const std::array &apis() { - static const auto apis = new std::array{ + static const auto apis = new std::array{{ APIEndpoint{ StringRef::from_lit("/api/v1beta1/backendconfig"), true, @@ -54,7 +54,7 @@ const std::array &apis() { (1 << API_METHOD_GET), &APIDownstreamConnection::handle_configrevision, }, - }; + }}; return *apis; }