diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-01-25 20:19:05 +0100 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2023-01-29 19:16:44 -0700 |
commit | 093cf428a3d7473f429a589f1573d9ac1c41d762 (patch) | |
tree | 7314dbfc855b44470a78756e1e41f43bdd56d083 /Userland/Services/WebServer/Client.cpp | |
parent | 11550f582ba99d317717ef76fef23118fa226ee1 (diff) | |
download | serenity-093cf428a3d7473f429a589f1573d9ac1c41d762.zip |
AK: Move memory streams from `LibCore`
Diffstat (limited to 'Userland/Services/WebServer/Client.cpp')
-rw-r--r-- | Userland/Services/WebServer/Client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Services/WebServer/Client.cpp b/Userland/Services/WebServer/Client.cpp index 0804a033ec..269582af5f 100644 --- a/Userland/Services/WebServer/Client.cpp +++ b/Userland/Services/WebServer/Client.cpp @@ -9,6 +9,7 @@ #include <AK/Base64.h> #include <AK/Debug.h> #include <AK/LexicalPath.h> +#include <AK/MemoryStream.h> #include <AK/QuickSort.h> #include <AK/StringBuilder.h> #include <AK/URL.h> @@ -16,7 +17,6 @@ #include <LibCore/DirIterator.h> #include <LibCore/File.h> #include <LibCore/MappedFile.h> -#include <LibCore/MemoryStream.h> #include <LibCore/MimeData.h> #include <LibHTTP/HttpRequest.h> #include <LibHTTP/HttpResponse.h> @@ -336,7 +336,7 @@ ErrorOr<void> Client::handle_directory_listing(String const& requested_path, Str builder.append("</html>\n"sv); auto response = builder.to_deprecated_string(); - auto stream = TRY(Core::Stream::FixedMemoryStream::construct(response.bytes())); + auto stream = TRY(FixedMemoryStream::construct(response.bytes())); return send_response(*stream, request, { .type = TRY(String::from_utf8("text/html"sv)), .length = response.length() }); } |