From c4de49099b1828f4e631b8302231fe962878807c Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Tue, 10 Oct 2023 22:25:12 -0600 Subject: [PATCH] Updated graphiql handler to use authToken() where available --- gql.go | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/gql.go b/gql.go index 0fff0be..86e8a94 100644 --- a/gql.go +++ b/gql.go @@ -235,22 +235,36 @@ func GraphiQLHandler(auth_token string) func(http.ResponseWriter, *http.Request) type="application/javascript" > - `, auth_token) + `) w.Header().Set("Content-Type", "text/html; charset=utf-8") w.WriteHeader(http.StatusOK)