| 
				
			 | 
			
			
				@@ -119,7 +119,7 @@ def opensearch(): 
			 | 
		
	
		
			
			| 
				119
			 | 
			
				119
			 | 
			
			
				     # chrome/chromium only supports HTTP GET.... 
			 | 
		
	
		
			
			| 
				120
			 | 
			
				120
			 | 
			
			
				     if request.headers.get('User-Agent', '').lower().find('webkit') >= 0: 
			 | 
		
	
		
			
			| 
				121
			 | 
			
				121
			 | 
			
			
				         method = 'get' 
			 | 
		
	
		
			
			| 
				122
			 | 
			
				
			 | 
			
			
				-    if request.headers.get('Host', '').find('https://'): 
			 | 
		
	
		
			
			| 
				
			 | 
			
				122
			 | 
			
			
				+    if request.is_secure: 
			 | 
		
	
		
			
			| 
				123
			 | 
			
				123
			 | 
			
			
				         scheme = 'https' 
			 | 
		
	
		
			
			| 
				124
			 | 
			
				124
			 | 
			
			
				     ret = opensearch_xml.format(method=method, host=url_for('index', _external=True, _scheme=scheme)) 
			 | 
		
	
		
			
			| 
				125
			 | 
			
				125
			 | 
			
			
				     resp = Response(response=ret, 
			 |