From 912cd60c4cdfd6e0253ee1b9ed1abade09ac8b7c Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Fri, 30 Jun 2023 10:55:49 +0200 Subject: various zenhttp fixes from sb/proto * Made HttpHealthService use locks to serialize access to state * Added ToString(HttpResponseCode HttpCode) * Added support for JS source maps * Moved IHttpStatsProvider/IHttpStatsService * Enabled enumeration of stats providers * Disabled build of HttpTestingService unless ZEN_WITH_TESTS is defined --- src/zenhttp/testing/httptest.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/zenhttp/testing/httptest.cpp') diff --git a/src/zenhttp/testing/httptest.cpp b/src/zenhttp/testing/httptest.cpp index 3e77e9c8c..a02e36bcc 100644 --- a/src/zenhttp/testing/httptest.cpp +++ b/src/zenhttp/testing/httptest.cpp @@ -6,6 +6,8 @@ #include #include +#if ZEN_WITH_TESTS + namespace zen { using namespace std::literals; @@ -205,3 +207,5 @@ HttpTestingService::PackageHandler::CreateTarget(const IoHash& Cid, uint64_t Sto } } // namespace zen + +#endif -- cgit v1.2.3