Skip to content

Commit fccecbb

Browse files
committed
Merge pull request #3 from haruyama/fix/use_context.ClearHandler
use context.ClearHandler middleware.
2 parents 69873c0 + f17adbb commit fccecbb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server.go

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"net/http"
66

77
"github.com/golang/glog"
8+
"github.com/gorilla/context"
89

910
"github.com/haruyama/golang-goji-sample/controllers"
1011
"github.com/haruyama/golang-goji-sample/system"
@@ -39,6 +40,7 @@ func main() {
3940
goji.Use(application.ApplyAuth)
4041
goji.Use(application.ApplyIsXhr)
4142
goji.Use(application.ApplyCsrfProtection)
43+
goji.Use(context.ClearHandler)
4244

4345
controller := &controllers.MainController{}
4446

0 commit comments

Comments
 (0)