diff --git a/endpoints/v2/__init__.py b/endpoints/v2/__init__.py index 483265818..1b63c6f52 100644 --- a/endpoints/v2/__init__.py +++ b/endpoints/v2/__init__.py @@ -62,7 +62,7 @@ def paginate(limit_kwarg_name='limit', offset_kwarg_name='offset', requested_limit = 0 limit = max(min(requested_limit, _MAX_RESULTS_PER_PAGE), 1) - next_page_token = request.args.get('next_page', None) + next_page_token = request.args.get('next_page', request.args.get('last', None)) # Decrypt the next page token, if any. offset = 0