mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	[fix] btdigg: disable ssl check,
avoid this error : SSLError: hostname 'btdigg.org' doesn't match either of 'ssl2000.cloudflare.com', 'cloudflare.com', '*.cloudflare.com'
This commit is contained in:
		
							parent
							
								
									57996b12fc
								
							
						
					
					
						commit
						7cc5146c14
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -29,6 +29,10 @@ def request(query, params): | ||||||
|     params['url'] = search_url.format(search_term=quote(query), |     params['url'] = search_url.format(search_term=quote(query), | ||||||
|                                       pageno=params['pageno']-1) |                                       pageno=params['pageno']-1) | ||||||
| 
 | 
 | ||||||
|  |     # FIX: SSLError: hostname 'btdigg.org' | ||||||
|  |     # doesn't match either of 'ssl2000.cloudflare.com', 'cloudflare.com', '*.cloudflare.com' | ||||||
|  |     params['verify'] = False | ||||||
|  | 
 | ||||||
|     return params |     return params | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 dalf
						dalf