Commit 4a0d0a08 by ichuang

minor change so that SSL code doesn't interfere with non-nginx instances

parent 93887157
......@@ -194,7 +194,10 @@ def edXauth_ssl_login(request):
if not cert:
cert = request.META.get('HTTP_'+certkey,'')
if not cert:
cert = request._req.subprocess_env.get(certkey,'') # try the direct apache2 SSL key
try:
cert = request._req.subprocess_env.get(certkey,'') # try the direct apache2 SSL key
except Exception as err:
pass
if not cert:
# no certificate information - go onward to main index
return student_views.main_index()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment