diff options
author | Linus Groh <mail@linusgroh.de> | 2023-03-09 14:58:04 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-09 15:50:45 +0000 |
commit | ad5e8f274219e716c2eb60d974bd835435587209 (patch) | |
tree | 1ae31b6c43a303dc3d112b620fef4edc59e15c42 /Userland/Services/WebServer | |
parent | ac9c39fa178d82d41256ea35b10284b4584f1f0a (diff) | |
download | serenity-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.cpp | 2 |
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); |