Esempio n. 1
0
 def file_format(self):
     ct = self.file.headers.get('Content-Type', 'unknown').lower()
     return KNOWN_DIF_FORMATS.get(ct, 'unknown')
Esempio n. 2
0
 def file_format(self):
     ct = self.file.headers.get("Content-Type", "unknown").lower()
     return KNOWN_DIF_FORMATS.get(ct, "unknown")
Esempio n. 3
0
 def file_format(self):
     ct = self.file.headers.get('Content-Type', 'unknown').lower()
     return KNOWN_DIF_FORMATS.get(ct, 'unknown')