From ac0865d2da78ce4712645182526de3a5e06bfce0 Mon Sep 17 00:00:00 2001 From: Brad Arant Date: Mon, 8 Dec 2025 16:36:14 -0800 Subject: [PATCH] CGI parsing work in progress. --- Global.h | 2 +- __jet.cpp | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Global.h b/Global.h index 020e62d..8f8e7a3 100644 --- a/Global.h +++ b/Global.h @@ -27,8 +27,8 @@ namespace jet { char *errorCursor = NULL; coreutils::CGIFormattedData cookies; + coreutils::CGIFormData *formdata; std::map variables; - std::map cgiVariables; std::map sessions; std::map headers; std::map tags; diff --git a/__jet.cpp b/__jet.cpp index 4affc6b..31bf5c4 100644 --- a/__jet.cpp +++ b/__jet.cpp @@ -36,11 +36,7 @@ namespace jet { coreutils::ZString contentLength(getenv("CONTENT_LENGTH")); coreutils::ZString contentType(getenv("CONTENT_TYPE")); - if(contentType == "multipart/form-data") - coreutils::IMFMultipart postdata(0, ""); - -// else if(contentType == "application/x-www-form-urlencoded") -// global.setupFormURLEncoded(postdata); + formdata = new coreutils::CGIFormData(0, contentType, contentLength, boundary); } } processContainer(container, NULL, true);