If path_whitelist is empty, skip path whitelist check.
@@ -33,6 +33,9 @@ class StreamingMiddleware(object):
matches = False
req_path = environ.get('PATH_INFO', None)
+ if not self._path_whitelist:
+ matches = True
+ else:
for path_whitelist in self._path_whitelist:
if fnmatch.fnmatch(req_path, path_whitelist):
matches = True
