Remove lower level redirect handling, repository.get_dir_contents seems to be the only function call that's redirecting.
Revert "add support for redirect responses"

This reverts commit 79ebd4b21a7e618efc96d68e3147d6e05c3e3dbc.
handle 302 responses in get_dir_contents requests