From 4b11b2aac3c6f50469b10e2fdd2e68ac3a2c6f48 Mon Sep 17 00:00:00 2001 From: Aonrud <107251085+Aonrud@users.noreply.github.com> Date: Fri, 9 Jun 2023 15:59:37 +0100 Subject: [PATCH] docs: correct example use of Github GraphQL Fixes #2229 --- docs/content/documentation/templates/overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/documentation/templates/overview.md b/docs/content/documentation/templates/overview.md index 48a58379ad..314ce34d52 100644 --- a/docs/content/documentation/templates/overview.md +++ b/docs/content/documentation/templates/overview.md @@ -469,7 +469,7 @@ environment variable to the access token you have obtained. ```jinja2 {% set token = get_env(name="GITHUB_TOKEN") %} -{% set postdata = load_data(url="https://api.github.com/graphql", format="json", method="POST" ,content_type="application/json", headers=["accept=application/vnd.github.v4.idl", "authentication=Bearer " ~ token], body='{"query":"query { viewer { login }}"}')%} +{% set postdata = load_data(url="https://api.github.com/graphql", format="json", method="POST" ,content_type="application/json", headers=["accept=application/vnd.github.v4.idl", "authorization=Bearer " ~ token], body='{"query":"query { viewer { login }}"}')%} {{postdata|safe}} ```