sophuwu.site > manhttpd
more stuff
sophuwu sophie@skisiel.com
Fri, 29 Dec 2023 19:29:16 +0100
commit

38fe8071745862525b6e0872ed188748cab85182

parent

2819aed3caf5778288da866279ecfd9ae588be45

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M main.gomain.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")