public function upgrader_pre_download( $reply, $package, $class ) {
		if ( $class instanceof \Plugin_Upgrader &&
			property_exists( $class->skin, 'plugin_info' )
		) {
			$headers = $class->skin->plugin_info;
			foreach ( self::$basic_auth_required as $git_server ) {
				$ghu_header = $headers[ $git_server . ' Plugin URI' ];
				if ( ! empty( $ghu_header ) ) {
					$this->load_authentication_hooks();
					break;
				}
			}
		}
		if ( $class instanceof \Theme_Upgrader &&
			property_exists( $class->skin, 'theme_info' )
		) {
			$theme = $class->skin->theme_info;
			foreach ( self::$basic_auth_required as $git_server ) {
				$ghu_header = $theme->get( $git_server . ' Theme URI' );
				if ( ! empty( $ghu_header ) ) {
					$this->load_authentication_hooks();
					break;
				}
			}
		}
		remove_filter( 'upgrader_pre_download', [ $this, 'upgrader_pre_download' ] );

		return $reply;
	}