Skip to content

Fix curl request in rest code samples #26396

Description

@pietervdheijden

Code of Conduct

What article on docs.github.com is affected?

All rest articles containing code samples with header X-GitHub-Api-Version. For example:

What part(s) of the article would you like to see updated?

Line:

-H "Authorization: Bearer <YOUR-TOKEN>"\

Doesn't have a space between " and \. As a result, the cURL request does not work correctly.

To fix this, the line should be replaced by:

-H "Authorization: Bearer <YOUR-TOKEN>" \

Additional information

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions