mirror of
				https://github.com/searxng/searxng.git
				synced 2025-10-31 10:37:06 -04:00 
			
		
		
		
	Fix: activate raise_for_error by default
Fix commit d703119d3a313a406482b121ee94c6afee3bc307 : Some engines need to parse the HTTP error but raise_for_error is always set to False in the "request" function.
This commit is contained in:
		
							parent
							
								
									f03ad0a3c0
								
							
						
					
					
						commit
						aedf03c0f7
					
				| @ -77,7 +77,7 @@ class OnlineProcessor(EngineProcessor): | |||||||
|         soft_max_redirects = params.get('soft_max_redirects', max_redirects or 0) |         soft_max_redirects = params.get('soft_max_redirects', max_redirects or 0) | ||||||
| 
 | 
 | ||||||
|         # raise_for_status |         # raise_for_status | ||||||
|         request_args['raise_for_httperror'] = params.get('raise_for_httperror', False) |         request_args['raise_for_httperror'] = params.get('raise_for_httperror', True) | ||||||
| 
 | 
 | ||||||
|         # specific type of request (GET or POST) |         # specific type of request (GET or POST) | ||||||
|         if params['method'] == 'GET': |         if params['method'] == 'GET': | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user