Merge pull request #934 from niphlod/fix/931

fixes #931 . Thanks @butsyk for spotting the bug
This commit is contained in:
mdipierro
2015-04-26 08:27:35 -05:00
+1 -1
View File
@@ -5362,7 +5362,7 @@ class Expose(object):
if current.request.raw_args:
self.args = [arg for arg in current.request.raw_args.split('/') if arg]
else:
self.args = [arg for arg in current.request.args if args]
self.args = [arg for arg in current.request.args if arg]
filename = os.path.join(base, *self.args)
if not os.path.exists(filename):
raise HTTP(404, "FILE NOT FOUND")