Ignore timeout when checking for HTTPS availability.
This commit is contained in:
		
							parent
							
								
									7e2ba95169
								
							
						
					
					
						commit
						7ad85116ef
					
				@ -176,9 +176,12 @@ module Utils
 | 
			
		||||
      hash_needed = false
 | 
			
		||||
      if url != secure_url
 | 
			
		||||
        user_agents.each do |user_agent|
 | 
			
		||||
          secure_details =
 | 
			
		||||
          secure_details = begin
 | 
			
		||||
            curl_http_content_headers_and_checksum(secure_url, specs: specs, hash_needed: true,
 | 
			
		||||
                                                   user_agent: user_agent)
 | 
			
		||||
          rescue Timeout::Error
 | 
			
		||||
            next
 | 
			
		||||
          end
 | 
			
		||||
 | 
			
		||||
          next unless http_status_ok?(secure_details[:status])
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user