Fixed an issue that was causing 401 errors due to duplicate headers being set. Removed obselete workaround for passing the auth arguments.