forked from zaclys/searxng
		
	Merge pull request #2161 from return42/fix-2146
[fix-2146] set different HTTP Referer header to DuckDuckGo requests
This commit is contained in:
		
						commit
						9faf0dc289
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -73,7 +73,7 @@ def request(query, params):
 | 
			
		|||
    # link again and again ..
 | 
			
		||||
 | 
			
		||||
    params['headers']['Content-Type'] = 'application/x-www-form-urlencoded'
 | 
			
		||||
    params['headers']['Referer'] = 'https://lite.duckduckgo.com/'
 | 
			
		||||
    params['headers']['Referer'] = 'https://google.com/'
 | 
			
		||||
 | 
			
		||||
    # initial page does not have an offset
 | 
			
		||||
    if params['pageno'] == 2:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue