From 04e4574cd3cfb95aca92ff05cdc8819aeb68f9ca Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Sun, 18 Jun 2023 22:05:47 -0600 Subject: [PATCH] test --- gql.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gql.go b/gql.go index e9b85b4..7902d29 100644 --- a/gql.go +++ b/gql.go @@ -80,7 +80,7 @@ func GraphiQLHandler() func(http.ResponseWriter, *http.Request) { root.render( React.createElement(GraphiQL, { fetcher: GraphiQL.createFetcher({ - url: 'http://%s/gql', + url: '/gql', }), defaultEditorToolsVisibility: true, }), @@ -88,7 +88,7 @@ func GraphiQLHandler() func(http.ResponseWriter, *http.Request) { - `, r.Host) + `) w.Header().Set("Content-Type", "text/html; charset=utf-8") w.WriteHeader(http.StatusOK)