Skip to content

Status 404 for files with multiple spaces #77

Closed
@lusever

Description

@lusever

Example:

$github->api('repos')->contents()->download('mads379', 'scala.tmbundle', 'Syntaxes/Simple Build Tool.tmLanguage');

But link https://api.github.com/repos/mads379/scala.tmbundle/contents/Syntaxes/Simple%20Build%20Tool.tmLanguage is work.

This occurs because lib generate the request:
/repos/mads379/scala.tmbundle/contents/Syntaxes%2FSimple+Build+Tool.tmLanguage

Solution:
Use rawurlencode instead of urlencode for all urls.

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