Skip to content

Don't send an emtpy ref to the client #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 21, 2013
Merged

Don't send an emtpy ref to the client #91

merged 1 commit into from
Nov 21, 2013

Conversation

NoUseFreak
Copy link
Contributor

The api will return 404 Not Found when sending an empty ref.

As this is default behavior in most of the Api classes I added a check to remove this value if it equals null.

ex invalid call:
curl -i https://api.github.com/repos/KnpLabs/php-github-api/contents/lib?ref=

The api will return Not Found when sending an empty ref.
cursedcoder added a commit that referenced this pull request Nov 21, 2013
Don't send an emtpy ref to the client
@cursedcoder cursedcoder merged commit 1ab12b3 into KnpLabs:master Nov 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants