Skip to content

Commit

Permalink
Merge pull request #24 from 0x616E676572/request_context
Browse files Browse the repository at this point in the history
use context from http request
  • Loading branch information
chris-ramon authored Aug 23, 2017
2 parents 37fc9f5 + 577a782 commit fab5288
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 fab5288

Please sign in to comment.