Skip to content
Snippets Groups Projects
Commit df9c1bd4 authored by Sergey Linev's avatar Sergey Linev Committed by Axel Naumann
Browse files

webgui: use new methods from THttpServer for reading file content

parent 15614a06
No related branches found
No related tags found
No related merge requests found
......@@ -200,14 +200,7 @@ public:
const char *mime = THttpServer::GetMimeType(fname.Data());
Int_t content_len;
char *content = THttpServer::ReadFileContent(fname.Data(), content_len);
std::string str_content;
str_content.append(content, content_len);
free(content);
std::string str_content = THttpServer::ReadFileContent(fname.Data());
// Create a stream reader for |html_content|.
CefRefPtr<CefStreamReader> stream = CefStreamReader::CreateForData(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment