From f97c88f6f64e66fe2abb38860ab1e3f8c0702439 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Fri, 8 Mar 2019 10:50:53 +0000 Subject: m_httpd: use http_response_str() instead of Response(). Lets not reinvent the wheel pointlessly. --- src/modules/m_httpd.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'src/modules/m_httpd.cpp') diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index e5d0a08e4..78c25f6d9 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -224,24 +224,12 @@ class HttpServerSocket : public BufferedSocket, public Timer, public insp::intru AddToCull(); } - const char* Response(unsigned int response) - { - switch (response) - { -#define HTTP_STATUS_CASE(n, m, s) case n: return #s; - HTTP_STATUS_MAP(HTTP_STATUS_CASE) - default: - return "WTF"; - break; - } - } - void SendHTTPError(unsigned int response) { HTTPHeaders empty; std::string data = InspIRCd::Format( "
Server error %u: %s