mirror of https://gitlab.com/bashrc2/epicyon
				
				
				
			Remove debug
							parent
							
								
									296aa09376
								
							
						
					
					
						commit
						b7380f11ff
					
				| 
						 | 
				
			
			@ -25,9 +25,10 @@ def show_vcard(self, base_dir: str, path: str, calling_domain: str,
 | 
			
		|||
               referer_domain: str, domain: str) -> bool:
 | 
			
		||||
    """Returns a vcard for the given account
 | 
			
		||||
    """
 | 
			
		||||
    print('DEBUG: vcard path 1 ' + path + ' ' + str(self.headers))
 | 
			
		||||
    if not has_accept(self, calling_domain):
 | 
			
		||||
        return False
 | 
			
		||||
    if not path.startswith('/users/'):
 | 
			
		||||
        return False
 | 
			
		||||
    if path.endswith('.vcf'):
 | 
			
		||||
        path = path.split('.vcf')[0]
 | 
			
		||||
        accept_str = 'text/vcard'
 | 
			
		||||
| 
						 | 
				
			
			@ -37,7 +38,6 @@ def show_vcard(self, base_dir: str, path: str, calling_domain: str,
 | 
			
		|||
        'text/vcard',
 | 
			
		||||
        'application/vcard+xml'
 | 
			
		||||
    )
 | 
			
		||||
    print('DEBUG: vcard path 2 ' + path)
 | 
			
		||||
    if not string_contains(accept_str, vcard_mime_types):
 | 
			
		||||
        return False
 | 
			
		||||
    print('Downloading vcard ' + path)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue