diff options
Diffstat (limited to 'uploader/route_utils.py')
| -rw-r--r-- | uploader/route_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/uploader/route_utils.py b/uploader/route_utils.py index fa63233..426d7eb 100644 --- a/uploader/route_utils.py +++ b/uploader/route_utils.py @@ -56,7 +56,7 @@ def generic_select_population( def redirect_to_next(default: dict): """Redirect to the next uri if specified, else redirect to default.""" assert "uri" in default, "You must provide at least the 'uri' value." - _next = request.args.get("next") + _next = request.args.get("next") or "" if bool(_next): try: next_page = base64_decode_to_dict(_next) @@ -73,7 +73,7 @@ def redirect_to_next(default: dict): **{key:value for key,value in default.items() if key != "uri"})) -def build_next_argument(uri: str, **kwargs) -> str: +def build_next_argument(uri: str, **kwargs) -> bytes: """Build the `next` URI argument from provided details.""" dumps_keywords = ( "skipkeys", "ensure_ascii", "check_circular", "allow_nan", "cls", |
