Use trust center from context
Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -59,7 +59,9 @@ func NewHandler[S graphql.ExecutableSchema](executableSchema S, logger *log.Logg
|
||||
}
|
||||
|
||||
func (gqlh *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
gqlh.gqlhandler.ServeHTTP(w, r)
|
||||
ctx := WithHTTPContext(r.Context(), w, r)
|
||||
|
||||
gqlh.gqlhandler.ServeHTTP(w, r.WithContext(ctx))
|
||||
}
|
||||
|
||||
func (gqlh *Handler) Use(extension graphql.HandlerExtension) {
|
||||
|
||||
Reference in New Issue
Block a user