Commit b2e60cad authored by Jim Fulton's avatar Jim Fulton

Added https check for IIS.

parent c07576cc
...@@ -478,11 +478,11 @@ Publishing a module using CGI ...@@ -478,11 +478,11 @@ Publishing a module using CGI
containing the module to be published) to the module name in the containing the module to be published) to the module name in the
cgi-bin directory. cgi-bin directory.
$Id: Publish.py,v 1.94 1998/09/03 17:06:00 jim Exp $""" $Id: Publish.py,v 1.95 1998/09/03 18:08:49 jim Exp $"""
#' #'
# #
########################################################################## ##########################################################################
__version__='$Revision: 1.94 $'[11:-2] __version__='$Revision: 1.95 $'[11:-2]
import sys, os, string, cgi, regex import sys, os, string, cgi, regex
from string import * from string import *
...@@ -1218,6 +1218,9 @@ class Request: ...@@ -1218,6 +1218,9 @@ class Request:
if have_env('HTTPS') and ( if have_env('HTTPS') and (
environ['HTTPS'] == "on" or environ['HTTPS'] == "ON"): environ['HTTPS'] == "on" or environ['HTTPS'] == "ON"):
server_url='https://' server_url='https://'
elif (have_env('SERVER_PORT_SECURE') and
environ['SERVER_PORT_SECURE'] == "1"):
server_url='https://'
else: server_url='http://' else: server_url='http://'
if have_env('HTTP_HOST'): if have_env('HTTP_HOST'):
......
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