diff --git a/src/server/response.cpp b/src/server/response.cpp index a19c5a7c1..8cf5c0c62 100644 --- a/src/server/response.cpp +++ b/src/server/response.cpp @@ -414,7 +414,7 @@ MHD_Result Response::send(const RequestContext& request, MHD_Connection* connect return ret; } -ContentResponse::ContentResponse(const std::string& root, bool verbose, bool raw, bool /*withTaskbar*/, bool /*withLibraryButton*/, bool blockExternalLinks, const std::string& content, const std::string& mimetype) : +ContentResponse::ContentResponse(const std::string& root, bool verbose, bool raw, bool blockExternalLinks, const std::string& content, const std::string& mimetype) : Response(verbose), m_root(root), m_content(content), @@ -436,8 +436,6 @@ std::unique_ptr ContentResponse::build( server.m_root, server.m_verbose.load(), raw, - /*server.m_withTaskbar && !isHomePage*/ false, // XXX - /*server.m_withLibraryButton*/ false, // XXX server.m_blockExternalLinks, content, mimetype)); diff --git a/src/server/response.h b/src/server/response.h index 78b6fc39f..34b9676dd 100644 --- a/src/server/response.h +++ b/src/server/response.h @@ -84,17 +84,17 @@ class ContentResponse : public Response { const std::string& root, bool verbose, bool raw, - bool withTaskbar, - bool withLibraryButton, bool blockExternalLinks, const std::string& content, const std::string& mimetype); + static std::unique_ptr build( const InternalServer& server, const std::string& content, const std::string& mimetype, bool isHomePage = false, bool raw = false); + static std::unique_ptr build( const InternalServer& server, const std::string& template_str,