diff --git a/__jet.cpp b/__jet.cpp
index 49dd209..be7b9f3 100644
--- a/__jet.cpp
+++ b/__jet.cpp
@@ -9,13 +9,10 @@ namespace jet {
__jet::__jet(coreutils::ZString &in, coreutils::MString &parentOut, Global &global, Tag *parent, Tag *local) : Tag(in, parentOut, global, parent, this) {
char *cookies;
- std::cout << "010" << std::endl;
if(keywordDefined("cgi") && (resolveKeyword("cgi") == "true")) {
- std::cout << "011" << std::endl;
global.cgi = true;
if(keywordDefined("sessiondir")) {
- std::cout << "012" << std::endl;
global.cookies = getenv("HTTP_COOKIE");
global.session = true;
// if request_has_cookie then
@@ -43,19 +40,14 @@ namespace jet {
}
- std::cout << "013" << std::endl;
coreutils::ZString requestMethod(getenv("REQUEST_METHOD"));
if(requestMethod == "POST") {
- std::cout << "014: " << requestMethod << std::endl;
coreutils::ZString contentLength(getenv("CONTENT_LENGTH"));
coreutils::ZString contentType(getenv("CONTENT_TYPE"));
- if(contentType == "multipart/form-data") {
- std::cout << "015" << std::endl;
- coreutils::IMFMultipart postdata(0, contentLength.asInteger());
- std::cout << "016" << std::endl;
-
- }
+ if(contentType == "multipart/form-data")
+ coreutils::IMFMultipart postdata(0, "");
+
// else if(contentType == "application/x-www-form-urlencoded")
// global.setupFormURLEncoded(postdata);
}
diff --git a/tests/dump.txt b/tests/dump.txt
index da96938..95ed08a 100644
--- a/tests/dump.txt
+++ b/tests/dump.txt
@@ -1,5 +1,11 @@
+*** CGI VARIABLES ***
*** GLOBAL VARIABLES ***
*** LOCAL VARIABLES ***
*** KEYWORD VALUES ***
+cgi=[true]
sessiondir=[.]
*** COOKIES ***
+
+$[^session]
+
-
+$[^session]