Skip to content

Gist filename case on https.get()'s url #1

@woolninesun

Description

@woolninesun

If Gist filename is ABC.js
The url is "https://gist.github.com/<github_id>/<gist_id>#file-abc-js"
The https.get()'s url is "https://gist.github.com/<github_id>/<gist_id>.js?file=abc.js"

But it will get statusCode: 404 because filename case wrong!
url need to be "https://gist.github.com/<github_id>/<gist_id>#file-ABC-js"

maybe can warn user to care about this and add some output to warn user if get 404 statusCode

Sorry about my poor english

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions