commit 39625041fc4b648ee3df086c88c8f5fa88215ebf
parent d3400d02c80e71fcf144573c0690bc9ba8d55c7b
Author: parazyd <parazyd@dyne.org>
Date: Mon, 20 Mar 2017 03:32:44 +0100
fix 301
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blck.py b/blck.py
@@ -27,7 +27,7 @@ def u(urlshort):
return "could not find url\n"
if "curl" not in flask.request.headers.get('User-Agent'):
- return flask.redirect(realurl, code=301)
+ return flask.redirect(realurl.rstrip('\n'), code=301)
else:
return realurl