Explorar el Código

fix cannot set cookie when response is written

Marcus Efraimsson hace 7 años
padre
commit
97c7963f17
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  1. 0 2
      pkg/middleware/middleware.go

+ 0 - 2
pkg/middleware/middleware.go

@@ -62,8 +62,6 @@ func GetContextHandler(ats *auth.UserAuthTokenService) macaron.Handler {
 
 		c.Map(ctx)
 
-		c.Next()
-
 		//if signed in with token
 		rotated, err := ats.RefreshToken(ctx.UserToken, ctx.RemoteAddr(), ctx.Req.UserAgent())
 		if err != nil {