fixed problem where any HTTP redirect was parsed as XML, bad downloads now fail