Check for multimedia files using lower case
This commit is contained in:
parent
2e955e5fe2
commit
c9bc21a506
2
iwla.py
2
iwla.py
|
@ -301,7 +301,7 @@ class IWLA(object):
|
||||||
def isMultimediaFile(self, request):
|
def isMultimediaFile(self, request):
|
||||||
self.logger.debug("Is multimedia %s" % (request))
|
self.logger.debug("Is multimedia %s" % (request))
|
||||||
for e in conf.multimedia_files:
|
for e in conf.multimedia_files:
|
||||||
if request.endswith(e):
|
if request.lower().endswith(e):
|
||||||
self.logger.debug("True")
|
self.logger.debug("True")
|
||||||
return True
|
return True
|
||||||
self.logger.debug("False")
|
self.logger.debug("False")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user