Correctly handle redirection when requesting manifests.
Merge pull request #169 from google/dev

Correctly handle redirection when requesting manifests.