Skip to content

Commit 6bf1c83

Browse files
author
Kareem Zidane
committed
Revert "using C9_PROJECT instead of C9_HOSTNAME"
This reverts commit 7383f11.
1 parent 9a86683 commit 6bf1c83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cs50/flask.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
# Add support for Cloud9 proxy so that flask.redirect doesn't redirect from HTTPS to HTTP
2424
# http://stackoverflow.com/a/23504684/5156190
25-
if getenv("C9_PROJECT") == "ide50" and not getenv("IDE_OFFLINE"):
25+
if getenv("C9_HOSTNAME") and not getenv("IDE_OFFLINE"):
2626
try:
2727
import flask
2828
from werkzeug.contrib.fixers import ProxyFix

0 commit comments

Comments
 (0)