Removed superfluous writeheader call

gql_cataclysm
noah metz 2023-11-07 20:58:03 -07:00
parent 8b91d0af0c
commit 520219f7b0
1 changed files with 0 additions and 1 deletions

@ -1838,7 +1838,6 @@ func (ext *GQLExt) StartGQLServer(ctx *Context, node *Node) error {
w.Write([]byte("{\"error\": \"server_error\"}")) w.Write([]byte("{\"error\": \"server_error\"}"))
} }
http.ServeContent(w, r, static_path, time.Time{}, file) http.ServeContent(w, r, static_path, time.Time{}, file)
w.WriteHeader(200)
} }
} else { } else {
ctx.Log.Logf("gql", "CUSTOM_FILE: %s", custom_path) ctx.Log.Logf("gql", "CUSTOM_FILE: %s", custom_path)