Set content to html
This commit is contained in:
parent
8dfa446e2a
commit
ea78585a94
@ -31,7 +31,7 @@ void default_handler(const drogon::HttpRequestPtr& req, std::function<void(const
|
|||||||
cbk(drogon::HttpResponse::newNotFoundResponse());
|
cbk(drogon::HttpResponse::newNotFoundResponse());
|
||||||
} else {
|
} else {
|
||||||
if (dev_mode) cbk(drogon::HttpResponse::newFileResponse("./static/index.html"));
|
if (dev_mode) cbk(drogon::HttpResponse::newFileResponse("./static/index.html"));
|
||||||
else cbk(drogon::HttpResponse::newFileResponse((unsigned char*)index_html.data(), index_html.size()));
|
else cbk(drogon::HttpResponse::newFileResponse((unsigned char*)index_html.data(), index_html.size(), "", drogon::CT_TEXT_HTML));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user