The cURL code samples in the API docs have a typo in the Authorization Header line #26708
Closed
1 task done
Labels
content
This issue or pull request belongs to the Docs Content team
Code of Conduct
What article on docs.github.com is affected?
Seemingly all instances of cURL code samples in the API docs include the below typo. I have only spot-checked, but tracking the source of the issue leads me to believe all instances would have the same problem.
If you copy/paste that full command (replacing the necessary variables "<YOUR-TOKEN>", "OWNER", and "REPO" with valid values), you will get a cURL error:
What changes are you suggesting?
The authorization header line in the cURL code samples should have a space before the backslash escape character at the end of the line:
-H "Authorization: Bearer <YOUR-TOKEN>"\
should be-H "Authorization: Bearer <YOUR-TOKEN>" \
I opened PR #26706 to address this, but the file is restricted since it's in the src directory.
Additional information
No response
The text was updated successfully, but these errors were encountered: