diff --git a/schort.py b/schort.py index b74e7ec..1d5e283 100755 --- a/schort.py +++ b/schort.py @@ -11,7 +11,7 @@ def short(shortLink=""): c = conn.cursor() result = c.execute('SELECT * FROM links WHERE shortLink=?', (shortLink, )).fetchone() if result: - return redirect(result[1], code=302) # Redirect to long URL saved in the database + return redirect(result[1], code=301) # Redirect to long URL saved in the database else: message = "" if len(shortLink) > 0: