fix a bug

This commit is contained in:
antao 2018-08-02 16:15:53 +08:00
parent 99ba19ebca
commit da88fd722b
1 changed files with 1 additions and 1 deletions

View File

@ -439,7 +439,7 @@ void HttpAppFrameworkImpl::onAsyncRequest(const HttpRequestPtr& req,const std::f
_sessionMapPtr->insert(session_id,std::make_shared< Session >(),_sessionTimeout);
}
}
((HttpRequestImpl &)req).setSession((*_sessionMapPtr)[session_id]);
(std::dynamic_pointer_cast<HttpRequestImpl>(req))->setSession((*_sessionMapPtr)[session_id]);
}
std::string path = req->path();