diff --git a/net/http/status.cpp b/net/http/status.cpp index 849474fc..5c9b67d6 100644 --- a/net/http/status.cpp +++ b/net/http/status.cpp @@ -19,7 +19,7 @@ limitations under the License. struct SV : public std::string_view { template - constexpr SV(const char(&s)[N]) : SV(s, N) { } + constexpr SV(const char(&s)[N]) : SV(s, N-1) { } constexpr SV(const char* s, size_t n) : std::string_view(s, n) { } };