Fucked up variable handling trying to improve things with a modifier.
This commit is contained in:
1 parent
d561a65f9d
commit
4972799e7a
5 files changed
+40
-18
No files matched your search
@@ -5,7 +5,18 @@
|
||||
namespace jet {
|
||||
|
||||
__jet::__jet(coreutils::ZString &in, coreutils::MString &parent, Global &global) : Tag(in, parent, global) {
|
||||
|
||||
if(variables["cgi"] == "true") {
|
||||
coreutils::ZString requestMethod(getenv("REQUEST_METHOD"));
|
||||
if(requestMethod == "POST") {
|
||||
coreutils::ZString contentLength(getenv("CONTENT_LENGTH"));
|
||||
coreutils::ZString contentType(getenv("CONTENT_TYPE"));
|
||||
if(contentType == "multipart/form-data")
|
||||
std::cout << "output multipart variables to global" << std::endl;
|
||||
else if(contentType == "application/x-www-form-urlencoded")
|
||||
std::cout << "output urlencoded variables to global" << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
processContainer(container);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user