Skip to content

GHContent.read() is broken due to incorrect HTTP Method #215

@if6was9

Description

@if6was9

GHContent.read() issues the request as POST rather than GET. This is fine for URLs that do not
require authentication. However, when download_url links are returned that have tokens in the query string, the corresponding POST fails.

Presumably it fails because on the remote end, the query string parameters of the POST request are not honored.

This issue would never be detected if testing happens against a public GitHub URL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions