diff options
Diffstat (limited to 'pecan/rest.py')
-rw-r--r-- | pecan/rest.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pecan/rest.py b/pecan/rest.py index 9fc18ab..4058bd6 100644 --- a/pecan/rest.py +++ b/pecan/rest.py @@ -1,6 +1,7 @@ from inspect import getargspec, ismethod from webob import exc +import six from .core import abort, request from .decorators import expose @@ -63,6 +64,9 @@ class RestController(object): try: result = handler(method, args) + # filter empty strings from the arg list + args = list(six.moves.filter(bool, args)) + # # If the signature of the handler does not match the number # of remaining positional arguments, attempt to handle |