PoC: Adds support to direct access on ARGS collection

This commit is contained in:
Felipe Zimmerle
2017-01-24 10:00:16 -03:00
committed by Felipe Zimmerle
parent 17e5a63577
commit ca24b6bb06
14 changed files with 2976 additions and 2732 deletions

View File

@@ -1012,8 +1012,8 @@ int Multipart::multipart_complete(std::string *error) {
} else {
debug(4, "Adding request argument (BODY): name \"" +
m->m_name + "\", value \"" + m->m_value + "\"");
m_transaction->m_collections.store("ARGS:" + m->m_name,
m->m_value);
m_transaction->m_variableArgs.set(m->m_name, m->m_value,
m_transaction->m_variableOffset);
m_transaction->m_collections.store("ARGS_POST:" + m->m_name,
m->m_value);
}

View File

@@ -16,6 +16,7 @@
#include <string>
#include <iostream>
#include <list>
#include <unordered_map>
#ifndef SRC_REQUEST_BODY_PROCESSOR_MULTIPART_H_
#define SRC_REQUEST_BODY_PROCESSOR_MULTIPART_H_