Skip to content

Commit 577a782

Browse files
committed
use context from http request
1 parent 37fc9f5 commit 577a782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (h *Handler) ContextHandler(ctx context.Context, w http.ResponseWriter, r *
145145

146146
// ServeHTTP provides an entrypoint into executing graphQL queries.
147147
func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
148-
h.ContextHandler(context.Background(), w, r)
148+
h.ContextHandler(r.Context(), w, r)
149149
}
150150

151151
type Config struct {

0 commit comments

Comments
 (0)