diff --git a/Userland/Services/WebServer/Configuration.cpp b/Userland/Services/WebServer/Configuration.cpp index 1a340fd78d..8715d90eaf 100644 --- a/Userland/Services/WebServer/Configuration.cpp +++ b/Userland/Services/WebServer/Configuration.cpp @@ -11,7 +11,7 @@ namespace WebServer { static Configuration* s_configuration = nullptr; -Configuration::Configuration(DeprecatedString document_root_path, Optional credentials) +Configuration::Configuration(String document_root_path, Optional credentials) : m_document_root_path(move(document_root_path)) , m_credentials(move(credentials)) { diff --git a/Userland/Services/WebServer/Configuration.h b/Userland/Services/WebServer/Configuration.h index 846168dddf..3cbbfee8a5 100644 --- a/Userland/Services/WebServer/Configuration.h +++ b/Userland/Services/WebServer/Configuration.h @@ -15,15 +15,15 @@ namespace WebServer { class Configuration { public: - Configuration(DeprecatedString document_root_path, Optional credentials = {}); + Configuration(String document_root_path, Optional credentials = {}); - DeprecatedString const& document_root_path() const { return m_document_root_path; } + String const& document_root_path() const { return m_document_root_path; } Optional const& credentials() const { return m_credentials; } static Configuration const& the(); private: - DeprecatedString m_document_root_path; + String m_document_root_path; Optional m_credentials; }; diff --git a/Userland/Services/WebServer/main.cpp b/Userland/Services/WebServer/main.cpp index bfff02d13b..92a683e2cf 100644 --- a/Userland/Services/WebServer/main.cpp +++ b/Userland/Services/WebServer/main.cpp @@ -68,7 +68,7 @@ ErrorOr serenity_main(Main::Arguments arguments) if (!username.is_empty() && !password.is_empty()) credentials = HTTP::HttpRequest::BasicAuthenticationCredentials { username, password }; - WebServer::Configuration configuration(real_document_root_path.to_deprecated_string(), credentials); + WebServer::Configuration configuration(real_document_root_path, credentials); Core::EventLoop loop;