We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42261a5 commit 23025a5Copy full SHA for 23025a5
src/cs50/flask.py
@@ -42,19 +42,5 @@ def _after(*args, **kwargs):
42
logging.getLogger("cs50").disabled = disabled
43
SQL.execute = _after
44
45
- # Add support for Cloud9 proxy so that flask.redirect doesn't redirect from HTTPS to HTTP
46
- # http://stackoverflow.com/a/23504684/5156190
47
- if getenv("C9_HOSTNAME") and not getenv("IDE_OFFLINE"):
48
- try:
49
- import flask
50
- from werkzeug.contrib.fixers import ProxyFix
51
- _before = flask.Flask.__init__
52
- def _after(*args, **kwargs):
53
- _before(*args, **kwargs)
54
- self.wsgi_app = ProxyFix(self.wsgi_app)
55
- flask.Flask.__init__ = _after
56
- except:
57
- pass
58
-
59
except Exception:
60
pass
0 commit comments