Skip to content

Commit 7383f11

Browse files
author
Kareem Zidane
authoredDec 29, 2018
using C9_PROJECT instead of C9_HOSTNAME
1 parent 2fc4670 commit 7383f11

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_HOSTNAME") and not getenv("IDE_OFFLINE"):
25+
if getenv("C9_PROJECT") == "ide50" and not getenv("IDE_OFFLINE"):
2626
try:
2727
import flask
2828
from werkzeug.contrib.fixers import ProxyFix

0 commit comments

Comments
 (0)
Please sign in to comment.