more stuff
sophuwu sophie@skisiel.com
Fri, 29 Dec 2023 19:29:16 +0100
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
main.go
→
main.go
@@ -26,7 +26,7 @@ q := ""
if strings.Contains(r.URL.String(), "?") { q = strings.SplitN(r.URL.String(), "?", 2)[1] } - cmd := exec.Command("/usr/lib/cgi-bin/man/"+exe, "-bare") + cmd := exec.Command("/usr/lib/cgi-bin/man/" + exe) var buff bytes.Buffer cmd.Env = append(cmd.Env, "QUERY_STRING="+q, "REQUEST_METHOD="+r.Method, "SERVER_NAME=localhost:1234") // cmd.Env = append(cmd.Env, "MANPATH=/usr/man:/usr/share/man:/usr/local/man:/usr/local/share/man:/usr/X11R6/man:/opt/man:/snap/man")