Searched refs:guess_type (Results 1 – 17 of 17) sorted by relevance
37 return mimetypes.guess_type(filename)[0] or 'application/octet-stream'
131 mime_type, encoding = mimetypes.guess_type(file_path)
237 mimetype = mimetypes.guess_type(fullpath)371 mimetype = mimetypes.guess_type(orig_filepath)
133 ctype, encoding = mimetypes.guess_type(path)
117 ctype = self.guess_type(path)
84 mimetype = _MIMETYPE_OVERRIDES.get(ext, mimetypes.guess_type(path)[0])
87 ctype, encoding = mimetypes.guess_type(path)
707 ctype = self.guess_type(path)
187 content_type = mimetypes.guess_type(file_path)[0]
109 mimetype = mimetypes.guess_type(filename)[0]
61 def guess_type(self, path): member in RequestHandler
535 return mimetypes.guess_type(filename)[0] or 'application/octet-stream'715 mimetype = mimetypes.guess_type(filename)[0]
653 return mimetypes.guess_type(filename)[0] or 'application/octet-stream'
647 guessed_mime = mimetypes.guess_type(file_path)
3106 return mimetypes.guess_type(filename)[0] or 'application/octet-stream'3319 mimetype = mimetypes.guess_type(filename)[0]3326 mimetype = mimetypes.guess_type(filename)[0]
3109 return mimetypes.guess_type(filename)[0] or 'application/octet-stream'3322 mimetype = mimetypes.guess_type(filename)[0]3329 mimetype = mimetypes.guess_type(filename)[0]