mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-01 19:17:07 -04:00 
			
		
		
		
	[fix] timeout to autocompleters
This commit is contained in:
		
							parent
							
								
									6f73f4e7a4
								
							
						
					
					
						commit
						9d11b36b5b
					
				| @ -19,11 +19,19 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >. | ||||
| from lxml import etree | ||||
| from json import loads | ||||
| from urllib import urlencode | ||||
| from searx import settings | ||||
| from searx.languages import language_codes | ||||
| from searx.engines import ( | ||||
|     categories, engines, engine_shortcuts | ||||
| ) | ||||
| from searx.poolrequests import get | ||||
| from searx.poolrequests import get as http_get | ||||
| 
 | ||||
| 
 | ||||
| def get(*args, **kwargs): | ||||
|     if not 'timeout' in kwargs: | ||||
|         kwargs['timeout'] = settings['server']['request_timeout'] | ||||
| 
 | ||||
|     return http_get(*args, **kwargs) | ||||
| 
 | ||||
| 
 | ||||
| def searx_bang(full_query): | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user