Loading src/theme.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -155,6 +155,9 @@ bool blogi::Theme::Controller(const int tid,libhttppp::HttpRequest *req){ *resp.setData("cache-control") << "max-age=31536000"; if(curfile->Type==ThemeFilesTypes::IMAGE){ if(curfile->Ending=="svg") resp.setContentType(std::string("image/svg+xml").c_str()); else resp.setContentType(std::string("image/").append(curfile->Ending).c_str()); }else if(curfile->Type==ThemeFilesTypes::TEXT){ resp.setContentType(std::string("text/").append(curfile->Ending).c_str()); Loading Loading
src/theme.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -155,6 +155,9 @@ bool blogi::Theme::Controller(const int tid,libhttppp::HttpRequest *req){ *resp.setData("cache-control") << "max-age=31536000"; if(curfile->Type==ThemeFilesTypes::IMAGE){ if(curfile->Ending=="svg") resp.setContentType(std::string("image/svg+xml").c_str()); else resp.setContentType(std::string("image/").append(curfile->Ending).c_str()); }else if(curfile->Type==ThemeFilesTypes::TEXT){ resp.setContentType(std::string("text/").append(curfile->Ending).c_str()); Loading