Adds support to the SERVER_NAME variable

This commit is contained in:
Felipe Zimmerle
2016-06-21 10:51:34 -03:00
parent df1f7c5e08
commit 60be385ebe
4 changed files with 96 additions and 1 deletions

View File

@@ -522,6 +522,11 @@ int Transaction::addRequestHeader(const std::string& key,
m_collections.store("REQBODY_PROCESSOR", "URLENCODED");
}
}
if (keyl == "host") {
std::vector<std::string> host = split(value, ':');
m_collections.store("SERVER_NAME", host[0]);
}
return 1;
}