aboutsummaryrefslogtreecommitdiff
path: root/ex.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-01-24 10:06:48 +0000
committerOmar Polo <op@omarpolo.com>2021-01-24 10:06:48 +0000
commit28ec61780962b6aa7b50845e3738399a92dc9e0c (patch)
treefe9372e854bc619bddf5f22712e9b7e30f43843b /ex.c
parentba7b2faa861032ba8e30a76aac2c6eef4de0b84c (diff)
sync the CGI environment with the manpage
while there also add SERVER_PROTOCOL
Diffstat (limited to 'ex.c')
-rw-r--r--ex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ex.c b/ex.c
index d718054..6b4d42c 100644
--- a/ex.c
+++ b/ex.c
@@ -215,6 +215,7 @@ launch_cgi(const char *spath, const char *relpath, const char *query,
argv[0] = argv[1] = ex;
safe_setenv("GATEWAY_INTERFACE", "CGI/1.1");
+ safe_setenv("SERVER_PROTOCOL", "GEMINI");
safe_setenv("SERVER_SOFTWARE", "gmid");
safe_setenv("SERVER_PORT", portno);