added dump tag.

This commit is contained in:
brad Arant committed 2024-11-24 14:25:39 -08:00
1 parent a9ce087939
commit 1c7edf3118
5 files changed
+60 -5

No files matched your search

+3 -5
View File
@@ -15,12 +15,10 @@ namespace jet {
coreutils::ZString contentType(getenv("CONTENT_TYPE"));
std::ofstream outFile("/tmp/output.txt");
coreutils::MString postdata;
postdata.read(0);
outFile << postdata << std::endl;
outFile.close();
postdata.read(0); // TODO: Need to limit the read characters to the CONTENT-LENGTH value;
if(contentType == "multipart/form-data")
global.setupFormData(postdata);
else if(contentType == "application/x-www-form-urlencoded")