Skip to content

Commit 5745d36

Browse files
author
prsolucoes
committed
Correct way for go 1.4 and later compile it
1 parent 3b61002 commit 5745d36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gopherling.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func main() {
182182
router.GET("/api/tests/:id/start", startTest)
183183

184184
// Catch-all (angular app)
185-
router.NotFound = http.FileServer(http.Dir("static")).ServeHTTP
185+
router.NotFound = http.HandlerFunc(http.FileServer(http.Dir("static")).ServeHTTP)
186186

187187
// Start listening
188188
fmt.Println("Gopherling server started on port 9410")

0 commit comments

Comments
 (0)