Skip to content

Commit 5593073

Browse files
committed
Merge pull request #1 from prsolucoes/patch-1
Correct way for go 1.4 and later compile it
2 parents 3b61002 + 5745d36 commit 5593073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)