Introduction
Introduction Statistics Contact Development Disclaimer Help
Add gophers to CGI environment in case tls is used. - geomyidae - a small C-bas…
git clone git://git.codemadness.org/geomyidae
Log
Files
Refs
README
LICENSE
---
commit 9d62510690cc6eb31a3ebd766cdab07b9f0dd65b
parent c436fc10abe28f4c60a480cad787f619a3724336
Author: Christoph Lohmann <[email protected]>
Date: Sun, 14 May 2023 00:12:04 +0200
Add gophers to CGI environment in case tls is used.
Diffstat:
M ind.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/ind.c b/ind.c
@@ -572,7 +572,11 @@ setcgienviron(char *file, char *path, char *port, char *ba…
setenv("SERVER_NAME", ohost, 1);
setenv("SERVER_PORT", port, 1);
setenv("SERVER_LISTEN_NAME", bhost, 1);
- setenv("SERVER_PROTOCOL", "gopher/1.0", 1);
+ if (istls) {
+ setenv("SERVER_PROTOCOL", "gophers/1.0", 1);
+ } else {
+ setenv("SERVER_PROTOCOL", "gopher/1.0", 1);
+ }
setenv("SERVER_SOFTWARE", "geomyidae", 1);
setenv("X_GOPHER_SEARCH", sear, 1);
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.