summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Libraries/LibHTML/ResourceLoader.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibHTML/ResourceLoader.cpp b/Libraries/LibHTML/ResourceLoader.cpp
index 12084d2dc5..2e0fcdbf60 100644
--- a/Libraries/LibHTML/ResourceLoader.cpp
+++ b/Libraries/LibHTML/ResourceLoader.cpp
@@ -43,7 +43,8 @@ void ResourceLoader::load(const URL& url, Function<void(const ByteBuffer&)> call
on_load_counter_change();
if (!success) {
dbg() << "HTTP load failed!";
- ASSERT_NOT_REACHED();
+ callback({});
+ return;
}
callback(ByteBuffer::copy(payload.data(), payload.size()));
};