From 5e1fb29021a2cd9b40f157cdafcdac932caac0f7 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 1 Apr 2025 19:05:58 -0700 Subject: [PATCH] use CTAD for array Mo need for the full blown thing. Signed-off-by: Rosen Penev --- src/futils.cpp | 4 ++-- src/http.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/futils.cpp b/src/futils.cpp index fd9dcf46c2..8e0ecfce56 100644 --- a/src/futils.cpp +++ b/src/futils.cpp @@ -59,11 +59,11 @@ namespace fs = std::filesystem; #endif namespace Exiv2 { -constexpr std::array ENVARDEF{ +constexpr std::array ENVARDEF{ "/exiv2.php", "40", }; /// @brief default URL for http exiv2 handler and time-out -constexpr std::array ENVARKEY{ +constexpr std::array ENVARKEY{ "EXIV2_HTTP_POST", "EXIV2_TIMEOUT", }; /// @brief request keys for http exiv2 handler and time-out diff --git a/src/http.cpp b/src/http.cpp index c5560a06de..628047603d 100644 --- a/src/http.cpp +++ b/src/http.cpp @@ -54,7 +54,7 @@ static constexpr auto httpTemplate = #define FINISH (-999) #define OK(s) (200 <= (s) && (s) < 300) -static constexpr std::array blankLines{ +static constexpr std::array blankLines{ "\r\n\r\n", // this is the standard "\n\n", // this is commonly sent by CGI scripts };