allow cookie, header and stream only in cgi mode.

This commit is contained in:
Brad Arant committed 2025-01-15 14:51:15 -08:00
1 parent 8b49bf39a9
commit edebae34b1
9 files changed
+30 -12

No files matched your search

+11 -8
View File
@@ -11,21 +11,24 @@ namespace jet {
std::ofstream outFile(keywords["file"].str());
outFile << "*** CGI VARIABLES ***" << std::endl;
for (auto i = global.cgiVariables.begin(); i != global.cgiVariables.end(); i++)
outFile << i->first << "=[" << i->second << "]" << std::endl;
outFile << "*** GLOBAL VARIABLES ***" << std::endl;
if(global.cgi) {
outFile << "*** CGI VARIABLES ***" << std::endl;
for (auto i = global.cgiVariables.begin(); i != global.cgiVariables.end(); i++)
outFile << i->first << "=[" << i->second << "]" << std::endl;
}
outFile << "*** GLOBAL VARIABLES ***" << std::endl;
for (auto i = global.variables.begin(); i != global.variables.end(); i++)
outFile << i->first << "=[" << i->second << "]" << std::endl;
outFile << "*** LOCAL VARIABLES ***" << std::endl;
outFile << "*** LOCAL VARIABLES ***" << std::endl;
for (auto i = local->variables.begin(); i != local->variables.end(); i++)
outFile << i->first << "=[" << i->second << "]" << std::endl;
outFile << "*** KEYWORD VALUES ***" << std::endl;
for (auto i = parent->keywords.begin(); i != parent->keywords.end(); i++)
outFile << i->first << "=[" << i->second << "]" << std::endl;
outFile.close();
}