Browse Source

Testing with FastCGI
Seems that I wasn’t passing anything, so nothing worked (?). Trying to pass our handler(w, r).

Gwyneth Llewelyn 2 years ago
parent
commit
d03d38f65f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gosl.go

+ 1 - 1
gosl.go

@@ -376,7 +376,7 @@ func main() {
 			// default is to run as FastCGI!
 			// works like a charm thanks to http://www.dav-muz.net/blog/2013/09/how-to-use-go-and-fastcgi/
 			log.Debug("http.DefaultServeMux is", http.DefaultServeMux)
-			if err := fcgi.Serve(nil, nil); err != nil {
+			if err := fcgi.Serve(nil, http.HandlerFunc(handler)); err != nil {
 				checkErrPanic(err)
 			}
 		}