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

+2 -1
View File
@@ -6,7 +6,8 @@
namespace jet {
__jet::__jet(coreutils::ZString &in, coreutils::MString &parentOut, Global &global, Tag *parent, Tag *local) : Tag(in, parentOut, global, parent, this) {
if(keywordDefined("cgi") && (keywords[resolveKeyword("cgi")] == "true")) {
if(keywordDefined("cgi") && (keywords[resolveKeyword("cgi")] == "true")) {
global.cgi = true;
coreutils::ZString requestMethod(getenv("REQUEST_METHOD"));
if(requestMethod == "POST") {
coreutils::ZString contentLength(getenv("CONTENT_LENGTH"));