Skip to content

Commit 864740a

Browse files
authored
docs: correct example use of Github GraphQL (#2230)
Fixes #2229
1 parent d149afe commit 864740a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/content/documentation/templates/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ environment variable to the access token you have obtained.
469469

470470
```jinja2
471471
{% set token = get_env(name="GITHUB_TOKEN") %}
472-
{% 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 }}"}')%}
472+
{% 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 }}"}')%}
473473
{{postdata|safe}}
474474
```
475475

0 commit comments

Comments
 (0)