From 520219f7b0864af39f246ba2b7ed505f3c5e8ace Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Tue, 7 Nov 2023 20:58:03 -0700 Subject: [PATCH] Removed superfluous writeheader call --- gql.go | 1 - 1 file changed, 1 deletion(-) diff --git a/gql.go b/gql.go index 239c8f2..adcdbc2 100644 --- a/gql.go +++ b/gql.go @@ -1838,7 +1838,6 @@ func (ext *GQLExt) StartGQLServer(ctx *Context, node *Node) error { w.Write([]byte("{\"error\": \"server_error\"}")) } http.ServeContent(w, r, static_path, time.Time{}, file) - w.WriteHeader(200) } } else { ctx.Log.Logf("gql", "CUSTOM_FILE: %s", custom_path)