cloudfoundry/cli — pull request #55 by fraenkel (2014-01-21 04:46:12+00:00)
Title: Allow any zip-based file to be uploaded

Detect a zip file rather than looking at the extension.
I optimized the call sequence to avoid cracking open the zip file twice. Wasn't sure if you want me to remove the openZip method since its a one-liner.