Set content to html
This commit is contained in:
		@@ -31,7 +31,7 @@ void default_handler(const drogon::HttpRequestPtr& req, std::function<void(const
 | 
			
		||||
        cbk(drogon::HttpResponse::newNotFoundResponse());
 | 
			
		||||
    } else {
 | 
			
		||||
        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));
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user