Adds support to variables: REQUEST_{METHOD,PROTOCOL,URI,URI_RAW}

This commit is contained in:
Felipe Zimmerle
2015-07-22 02:05:58 -03:00
parent bc925e01e6
commit ec34f676c6
5 changed files with 184 additions and 0 deletions

View File

@@ -239,6 +239,10 @@ int Assay::processURI(const char *uri, const char *protocol,
path_info.length() - offset);
store_variable("REQUEST_BASENAME", basename);
}
store_variable("REQUEST_METHOD", protocol);
store_variable("REQUEST_PROTOCOL", "HTTP/" + std::string(http_version));
store_variable("REQUEST_URI", uri);
store_variable("REQUEST_URI_RAW", uri);
if (pos != NULL && strlen(pos) > 2) {
/**