Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
b2e60cad
Commit
b2e60cad
authored
Sep 03, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added https check for IIS.
parent
c07576cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lib/python/ZPublisher/Publish.py
lib/python/ZPublisher/Publish.py
+5
-2
No files found.
lib/python/ZPublisher/Publish.py
View file @
b2e60cad
...
@@ -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.9
4 1998/09/03 17:06:00
jim Exp $"""
$Id: Publish.py,v 1.9
5 1998/09/03 18:08:49
jim Exp $"""
#'
#'
#
#
##########################################################################
##########################################################################
__version__
=
'$Revision: 1.9
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.9
5
$'
[
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'
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment