(bug 31849) API imageinfo correctly handle redirects