Browse Source

Merge branch 'master' of ssh://gogs.dezendorf.net:2222/breandan/monorepo

Breandan Dezendorf 1 year ago
parent
commit
9f5aaf6012
1 changed files with 4 additions and 0 deletions
  1. 4 0
      dezendorf/applications/gopy/gopy.py

+ 4 - 0
dezendorf/applications/gopy/gopy.py

@@ -120,6 +120,10 @@ def delete_link_form(link_id):
 
 @app.route('/list')
 def list_links():
+    print("Base URL = {}".format(request.base_url))
+    if "http://" in request.base_url:
+        return redirect(list_fqdn)
+        print("non-TLS /list URL = {}, redirecting".format(request.base_url))
     links = get_links()
     return render_template('list.html', links=links)