We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68069fb commit d02ec28Copy full SHA for d02ec28
1 file changed
transport/grapql/server.go
@@ -42,7 +42,7 @@ type ServerOption func(*Server)
42
// ServerBefore functions are executed on the HTTP request object before the
43
// request is decoded.
44
func ServerBefore(before ...RequestFunc) ServerOption {
45
- return func(s *Server) { s.before = before }
+ return func(s *Server) { s.before = append(s.before, before...) }
46
}
47
48
// ServerAfter functions are executed on the HTTP response writer after the
0 commit comments