diff --git a/Global.h b/Global.h index b7021e8..020e62d 100644 --- a/Global.h +++ b/Global.h @@ -26,7 +26,6 @@ namespace jet { void setupFormURLEncoded(coreutils::ZString &formdata); char *errorCursor = NULL; - coreutils::CGIFormattedData cookies; std::map variables; std::map cgiVariables; diff --git a/__jet.cpp b/__jet.cpp index aedaa32..49dd209 100644 --- a/__jet.cpp +++ b/__jet.cpp @@ -43,17 +43,19 @@ 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; - } - - + } // else if(contentType == "application/x-www-form-urlencoded") // global.setupFormURLEncoded(postdata); } diff --git a/tests/testpost.jet b/tests/testpost.jet index 1e7b416..3badaf5 100755 --- a/tests/testpost.jet +++ b/tests/testpost.jet @@ -1,6 +1,6 @@ #!../jet-2.0 - +