diff --git a/Libraries/LibWeb/Loader/Resource.cpp b/Libraries/LibWeb/Loader/Resource.cpp index df7c32f1855..f4fe30ce4a9 100644 --- a/Libraries/LibWeb/Loader/Resource.cpp +++ b/Libraries/LibWeb/Loader/Resource.cpp @@ -87,6 +87,8 @@ static String guess_mime_type_based_on_filename(const URL& url) return "text/markdown"; if (url.path().ends_with(".html") || url.path().ends_with(".htm")) return "text/html"; + if (url.path().ends_with("/")) + return "text/html"; return "text/plain"; }