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.
2 parents d0e18fb + ab94bad commit a1a901eCopy full SHA for a1a901e
src/cs50/flask.py
@@ -44,7 +44,7 @@ def _execute_after(*args, **kwargs):
44
45
# When behind CS50 IDE's proxy, ensure that flask.redirect doesn't redirect from HTTPS to HTTP
46
# https://werkzeug.palletsprojects.com/en/0.15.x/middleware/proxy_fix/#module-werkzeug.middleware.proxy_fix
47
- if getenv("C9_HOSTNAME") and not getenv("IDE_OFFLINE"):
+ if getenv("CS50_IDE_TYPE") == "online":
48
try:
49
import flask
50
from werkzeug.middleware.proxy_fix import ProxyFix
0 commit comments