Skip to content

Commit fab5288

Browse files
authored
Merge pull request #24 from 0x616E676572/request_context
use context from http request
2 parents 37fc9f5 + 577a782 commit fab5288

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)