summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Loader
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-12-11 17:49:00 +0100
committerAndreas Kling <kling@serenityos.org>2022-12-12 14:16:42 +0100
commited4c2f2f8ea59295edceca77bf308df5de6872d6 (patch)
treec28004c0fcfe0146d40549c74ec256eb50f3eb44 /Userland/Libraries/LibWeb/Loader
parent5061a905ff561743c7de9c7a413845b714ab4ee2 (diff)
downloadserenity-ed4c2f2f8ea59295edceca77bf308df5de6872d6.zip
LibCore: Rename `Stream::read_all` to `read_until_eof`
This generally seems like a better name, especially if we somehow also need a better name for "read the entire buffer, but not the entire file" somewhere down the line.
Diffstat (limited to 'Userland/Libraries/LibWeb/Loader')
-rw-r--r--Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp b/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp
index ef061baa0b..475b3930bb 100644
--- a/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp
+++ b/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp
@@ -243,7 +243,7 @@ void ResourceLoader::load(LoadRequest& request, Function<void(ReadonlyBytes, Has
}
auto file = maybe_file.release_value();
- auto maybe_data = file->read_all();
+ auto maybe_data = file->read_until_eof();
if (maybe_data.is_error()) {
log_failure(request, maybe_data.error());
if (error_callback)