From 69e8216f2c5310ca68409ecaf501266da43f14ba Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Tue, 4 Apr 2023 16:12:42 -0400 Subject: LibWeb: Do not use OS error codes in the error callback for file:// URLs The error code passed here is expected to be an HTTP error code. Passing errno codes does not make sense in that context. --- Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp b/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp index 01edc9163f..fffc0fff11 100644 --- a/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp +++ b/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp @@ -244,8 +244,10 @@ void ResourceLoader::load(LoadRequest& request, Function