mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-16 19:54:38 +01:00
PageCompiler: make session available before page precondition is checked - allows use of session in precondition
This commit is contained in:
parent
d550ff7af9
commit
f04e19a362
@ -263,11 +263,11 @@ void CodeWriter::writeHandler(std::ostream& ostr)
|
||||
ostr << "void " << _class << "::handleRequest(Poco::Net::HTTPServerRequest& request, Poco::Net::HTTPServerResponse& response)\n";
|
||||
ostr << "{\n";
|
||||
writeResponse(ostr);
|
||||
writeSession(ostr);
|
||||
if (_page.has("page.precondition"))
|
||||
{
|
||||
ostr << "\tif (!(" << _page.get("page.precondition") << ")) return;\n\n";
|
||||
}
|
||||
writeSession(ostr);
|
||||
writeForm(ostr);
|
||||
ostr << _page.preHandler().str();
|
||||
writeContent(ostr);
|
||||
|
Loading…
Reference in New Issue
Block a user