Adds support to the REQUEST_LINE variable

This commit is contained in:
Felipe Zimmerle
2015-07-22 01:57:46 -03:00
parent cb722c74b9
commit bc925e01e6
2 changed files with 48 additions and 0 deletions

View File

@@ -219,6 +219,9 @@ int Assay::processURI(const char *uri, const char *protocol,
const char *pos = strchr(m_uri_decoded.c_str(), '?');
store_variable("REQUEST_LINE", std::string(protocol) + " " +
std::string(uri) + " HTTP/" + std::string(http_version));
std::string path_info;
if (pos == NULL) {
path_info = std::string(m_uri_decoded, 0);