From 050b5f2b876e6635d6d6738e50727aca943c8816 Mon Sep 17 00:00:00 2001 From: Brad Arant Date: Mon, 17 Mar 2025 16:46:50 -0700 Subject: [PATCH] more formdata work. --- Global.h | 1 - __jet.cpp | 8 +++++--- tests/testpost.jet | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) 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 - +