includes/class-fs-api.php
private static function should_try_with_http( $result ) {
			if ( ! Freemius_Api_WordPress::IsHttps() ) {
				return false;
			}

			return ( ! is_object( $result ) ||
			         ! isset( $result->error ) ||
			         ! isset( $result->error->code ) ||
			         ! in_array( $result->error->code, array(
				         'curl_missing',
				         'cloudflare_ddos_protection',
				         'maintenance_mode',
				         'squid_cache_block',
				         'too_many_requests',
			         ) ) );

		}
private static function should_try_with_http( $result ) {
			if ( ! Freemius_Api_WordPress::IsHttps() ) {
				return false;
			}

			return ( ! is_object( $result ) ||
			         ! isset( $result->error ) ||
			         ! isset( $result->error->code ) ||
			         ! in_array( $result->error->code, array(
				         'curl_missing',
				         'cloudflare_ddos_protection',
				         'maintenance_mode',
				         'squid_cache_block',
				         'too_many_requests',
			         ) ) );

		}
private static function should_try_with_http ( $ result ) { if ( ! Freemius_Api_WordPress :: IsHttps ( ) ) { return false ; } return ( ! is_object ( $ result ) || ! isset ( $ result -> error ) || ! isset ( $ result -> error -> code ) || ! in_array ( $ result -> error -> code , array ( 'curl_missing' , 'cloudflare_ddos_protection' , 'maintenance_mode' , 'squid_cache_block' , 'too_many_requests' , ) ) ) ; }
Check if based on the API result we should try
to re-run the same request with HTTP instead of HTTPS.

@author Vova Feldman (@svovaf)
@since  1.1.6

@param $result

@return bool
Check if based on the API result we should try to re - run the same request with HTTP instead of HTTPS .