diff --git a/Userland/Libraries/LibWeb/Loader/Resource.cpp b/Userland/Libraries/LibWeb/Loader/Resource.cpp index 21b002f039b..cd741769f33 100644 --- a/Userland/Libraries/LibWeb/Loader/Resource.cpp +++ b/Userland/Libraries/LibWeb/Loader/Resource.cpp @@ -102,9 +102,6 @@ void Resource::did_load(Badge, ReadonlyBytes data, HashMap response_headers; + response_headers.set("Content-Type", url.data_mime_type()); + log_success(request); - Platform::EventLoopPlugin::the().deferred_invoke([data = move(data), success_callback = move(success_callback)] { - success_callback(data, {}, {}); + Platform::EventLoopPlugin::the().deferred_invoke([data = move(data), response_headers = move(response_headers), success_callback = move(success_callback)] { + success_callback(data, response_headers, {}); }); return; }