mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-03 19:17:07 -05:00 
			
		
		
		
	Merge pull request #512 from ldidry/refix-428
Fix results with no scheme
This commit is contained in:
		
						commit
						ead8456a2b
					
				@ -138,6 +138,7 @@ class ResultContainer(object):
 | 
			
		||||
        # if the result has no scheme, use http as default
 | 
			
		||||
        if not result['parsed_url'].scheme:
 | 
			
		||||
            result['parsed_url'] = result['parsed_url']._replace(scheme="http")
 | 
			
		||||
            result['url'] = result['parsed_url'].geturl()
 | 
			
		||||
 | 
			
		||||
        result['host'] = result['parsed_url'].netloc
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user