aboutsummaryrefslogtreecommitdiff
path: root/app/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/main.py')
-rw-r--r--app/main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/main.py b/app/main.py
index e379d21..c58a45f 100644
--- a/app/main.py
+++ b/app/main.py
@@ -154,7 +154,8 @@ Log all records for visits to shortened links
@app.route("/<link>", methods=["GET"])
-def log_redirect(link):
+def log_redirect(link: str):
+ link = link.upper()
# If `link` is not exactly 5 characters, return redirect to base url
if len(link) != 5:
return redirect(BASE_URL)