##// END OF EJS Templates
BUG: Set default mimetype when base64 is requested
Scott Sanderson -
Show More
@@ -357,6 +357,7 b' class FileContentsManager(ContentsManager):'
357 357 if model['content'] is None:
358 358 model['content'] = base64.encodestring(bcontent).decode('ascii')
359 359 model['format'] = 'base64'
360 if model['format'] == 'base64':
360 361 default_mime = 'application/octet-stream'
361 362
362 363 model['mimetype'] = mimetypes.guess_type(os_path)[0] or default_mime
General Comments 0
You need to be logged in to leave comments. Login now