Skip to content

Commit

Permalink
use context from http request
Browse files Browse the repository at this point in the history
  • Loading branch information
0x616E676572 committed Jul 27, 2017
1 parent 37fc9f5 commit 577a782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (h *Handler) ContextHandler(ctx context.Context, w http.ResponseWriter, r *

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

type Config struct {
Expand Down

0 comments on commit 577a782

Please sign in to comment.