PEP 8 compliance and small modification to mime.types file
This commit is contained in:
parent
df7f1d3147
commit
ca8d30466c
@ -3,3 +3,8 @@
|
||||
# Please enter Mime-Types in standard mime.types format #
|
||||
# Mime-Type Extension ex. image/jpeg jpg #
|
||||
#########################################################
|
||||
|
||||
#EX. Mime-Type Extension
|
||||
# foo/bar foo
|
||||
|
||||
|
||||
|
@ -1268,7 +1268,8 @@ class BaseApplication(object):
|
||||
self.account_ring = account_ring or \
|
||||
Ring(os.path.join(swift_dir, 'account.ring.gz'))
|
||||
self.memcache = memcache
|
||||
mimetypes.init(mimetypes.knownfiles + [os.path.join(self.swift_dir, 'mime.types')])
|
||||
mimetypes.init(mimetypes.knownfiles +
|
||||
[os.path.join(self.swift_dir, 'mime.types')])
|
||||
|
||||
def get_controller(self, path):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user