Commit 667707df authored by Sergey Lyubka's avatar Sergey Lyubka

Merge pull request #214 from DanielOaks/server_software

Added SERVER_SOFTWARE CGI variable
parents e47dbcbd 90b6fab3
...@@ -3279,6 +3279,7 @@ static void prepare_cgi_environment(struct mg_connection *conn, ...@@ -3279,6 +3279,7 @@ static void prepare_cgi_environment(struct mg_connection *conn,
addenv(blk, "SERVER_NAME=%s", conn->ctx->config[AUTHENTICATION_DOMAIN]); addenv(blk, "SERVER_NAME=%s", conn->ctx->config[AUTHENTICATION_DOMAIN]);
addenv(blk, "SERVER_ROOT=%s", conn->ctx->config[DOCUMENT_ROOT]); addenv(blk, "SERVER_ROOT=%s", conn->ctx->config[DOCUMENT_ROOT]);
addenv(blk, "DOCUMENT_ROOT=%s", conn->ctx->config[DOCUMENT_ROOT]); addenv(blk, "DOCUMENT_ROOT=%s", conn->ctx->config[DOCUMENT_ROOT]);
addenv(blk, "SERVER_SOFTWARE=%s/%s", "Mongoose", mg_version());
// Prepare the environment block // Prepare the environment block
addenv(blk, "%s", "GATEWAY_INTERFACE=CGI/1.1"); addenv(blk, "%s", "GATEWAY_INTERFACE=CGI/1.1");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment