Skip to content

Commit

Permalink
http.go: actually pass passenv setting to CGI proc
Browse files Browse the repository at this point in the history
  • Loading branch information
matvore committed Feb 19, 2023
1 parent 334a9ec commit cd87527
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libwebsocketd/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,7 @@ func (h *WebsocketdServer) ServeHTTP(w http.ResponseWriter, req *http.Request) {
cgienv[envlen] = "SERVER_SOFTWARE=" + h.Config.ServerSoftware
cgiHandler := &cgi.Handler{
Path: filePath,
Env: []string{
"SERVER_SOFTWARE=" + h.Config.ServerSoftware,
},
Env: cgienv,
}
log.Access("http", "CGI")
cgiHandler.ServeHTTP(w, req)
Expand Down

0 comments on commit cd87527

Please sign in to comment.