diff --git a/src/server/resource.cpp b/src/server/resource.cpp index e80b272..f935ecd 100644 --- a/src/server/resource.cpp +++ b/src/server/resource.cpp @@ -36,8 +36,8 @@ http::resource::StaticFileFactory::StaticFileDef::StaticFileDef(const std::strin BOOST_LOG_TRIVIAL(info) << "Skip loading static file " << this->webPath; } #else - BOOST_LOG_TRIVIAL(info) << "Load static file " << this->path; - loadFile(this->path, this->content); + BOOST_LOG_TRIVIAL(info) << "Load static file " << path; + loadFile(path, this->content); #endif } http::resource::StaticFileFactory::StaticFileDef::~StaticFileDef() = default;