diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/src/handlers/GetStaticAssetHandler.cpp b/src/handlers/GetStaticAssetHandler.cpp index 7572e77..ac32209 100644 --- a/src/handlers/GetStaticAssetHandler.cpp +++ b/src/handlers/GetStaticAssetHandler.cpp @@ -25,9 +25,11 @@ FileResponse GetStaticAssetHandler(const StringRequest& req) if (sys::error_code ec; file.open(abs_path.string().c_str(), beast::file_mode::read, ec), ec) { res.result(http::status::not_found); + res.set(http::field::content_type, content_type::k_TextPlain); } else { + res.result(http::status::ok); res.body() = std::move(file); res.prepare_payload(); }