From 6b123d4bc61c2db8e379dd5e681834c4053e661d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 22 Aug 2024 10:26:43 +0100 Subject: Use C++20 instead of fmtlib when available. --- modules/httpd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/httpd.cpp') diff --git a/modules/httpd.cpp b/modules/httpd.cpp index de80b63ed..156be2fe3 100644 --- a/modules/httpd.cpp +++ b/modules/httpd.cpp @@ -258,7 +258,7 @@ public: ServerInstance->Logs.Debug(MODNAME, "Sending HTTP error {}: {}", response, errstr); static HTTPHeaders empty; - std::string data = fmt::format( + std::string data = FMT::format( "" "

Error {}

{}


" "Powered by InspIRCd", @@ -269,7 +269,7 @@ public: void SendHeaders(unsigned long size, unsigned int response, HTTPHeaders& rheaders) { - WriteData(fmt::format("HTTP/{}.{} {} {}\r\n", parser.http_major ? parser.http_major : 1, parser.http_major ? parser.http_minor : 1, response, http_status_str((http_status)response))); + WriteData(FMT::format("HTTP/{}.{} {} {}\r\n", parser.http_major ? parser.http_major : 1, parser.http_major ? parser.http_minor : 1, response, http_status_str((http_status)response))); rheaders.CreateHeader("Date", Time::ToString(ServerInstance->Time(), "%a, %d %b %Y %H:%M:%S GMT", true)); rheaders.CreateHeader("Server", INSPIRCD_BRANCH); -- cgit v1.3.1-10-gc9f91