Skip to content
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

chunk verification fails on upload #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

ksacry
Copy link

@ksacry ksacry commented Aug 14, 2012

The response from vimeo is either an array of objects if using chunks, or just one array with id and size if using one chunk.

The response from vimeo is either an array of objects if using chunks, or just one array with id and size if using one chunk.
I was originally just checking if chunks where used to determine if the return was an array of classes or just an array.
This failed if there was only one chunk.
This now checks for  the key 0 meaning it's an array of objects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant