Skip to content

Instantly share code, notes, and snippets.

@gkoh
gkoh / keybase.md
Created September 10, 2019 10:32
keybase.md

Keybase proof

I hereby claim:

  • I am gkoh on github.
  • I am gkoh (https://keybase.io/gkoh) on keybase.
  • I have a public key ASA9ErMby8TP02xFxmSg-H5DPoWdIVPxBW8SZQfGPIdBQwo

To claim this, I am signing this object:

diff --git a/api.py b/api.py
index 51e1d2b..fb95d6d 100644
--- a/api.py
+++ b/api.py
@@ -93,6 +93,9 @@ def switch_output(data):
def get_link(route=''):
"""Gets a link (including domain/subdirs) to a route."""
+ if request.environ.get('HTTPS') == '1':
+ request.environ.set['wsgi.url_scheme'] = 'https'