CGI parsing work in progress.
This commit is contained in:
parent
7e835e5073
commit
ac0865d2da
2
Global.h
2
Global.h
@ -27,8 +27,8 @@ namespace jet {
|
||||
char *errorCursor = NULL;
|
||||
|
||||
coreutils::CGIFormattedData cookies;
|
||||
coreutils::CGIFormData *formdata;
|
||||
std::map<coreutils::MString, coreutils::MString> variables;
|
||||
std::map<coreutils::MString, coreutils::MString> cgiVariables;
|
||||
std::map<coreutils::MString, __mysql *> sessions;
|
||||
std::map<coreutils::MString, coreutils::MString> headers;
|
||||
std::map<coreutils::MString, coreutils::MString> tags;
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user