summaryrefslogtreecommitdiff
path: root/Userland/Services/WebServer
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2023-03-09 14:58:04 +0000
committerLinus Groh <mail@linusgroh.de>2023-03-09 15:50:45 +0000
commitad5e8f274219e716c2eb60d974bd835435587209 (patch)
tree1ae31b6c43a303dc3d112b620fef4edc59e15c42 /Userland/Services/WebServer
parentac9c39fa178d82d41256ea35b10284b4584f1f0a (diff)
downloadserenity-ad5e8f274219e716c2eb60d974bd835435587209.zip
WebServer+LibGUI: Use fallible version of StringBuilder::to_byte_buffer
...and simply ignore the errors for now. This allows us to remove the infallible function and avoid accumulating more callers of it.
Diffstat (limited to 'Userland/Services/WebServer')
-rw-r--r--Userland/Services/WebServer/Client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WebServer/Client.cpp b/Userland/Services/WebServer/Client.cpp
index d2601482d1..c68dc720ea 100644
--- a/Userland/Services/WebServer/Client.cpp
+++ b/Userland/Services/WebServer/Client.cpp
@@ -81,7 +81,7 @@ void Client::start()
builder.append("\r\n"sv);
}
- auto request = builder.to_byte_buffer();
+ auto request = builder.try_to_byte_buffer().release_value_but_fixme_should_propagate_errors();
dbgln_if(WEBSERVER_DEBUG, "Got raw request: '{}'", DeprecatedString::copy(request));
auto maybe_did_handle = handle_request(request);