1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2025-08-03 12:50:02 +00:00

Delete get_env, which confused me a lot.

Get raw environment variables directly from main().
Add code to split on '=' in cgi_environment_vars and only pick
the ones that are interesting, just as before.
This commit is contained in:
King_DuckZ 2017-05-08 19:46:14 +01:00
parent 376b34c1d0
commit 07135f215c
9 changed files with 60 additions and 98 deletions

View file

@ -81,8 +81,8 @@ namespace cgi {
}
} //unnamed namespace
Env::Env() :
m_cgi_env(cgi_environment_vars())
Env::Env(const char* const* parEnvList) :
m_cgi_env(cgi_environment_vars(parEnvList))
{
}