Skip to content

Commit 084ae1c

Browse files
author
Richard Jones
committed
The correct var is "HTTP_HOST"
1 parent e00c4e4 commit 084ae1c

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

roundup/cgi_client.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: cgi_client.py,v 1.107 2002-02-21 06:57:38 richard Exp $
18+
# $Id: cgi_client.py,v 1.108 2002-02-21 07:02:54 richard Exp $
1919

2020
__doc__ = """
2121
WWW request handler (also used in the stand-alone server).
@@ -57,7 +57,8 @@ def __init__(self, instance, request, env, form=None):
5757
machine = self.env['SERVER_NAME']
5858
port = self.env['SERVER_PORT']
5959
if port != '80': machine = machine + ':' + port
60-
self.base = urlparse.urlunparse(('http', env['HOST'], url, None,None,None))
60+
self.base = urlparse.urlunparse(('http', env['HTTP_HOST'], url,
61+
None, None, None))
6162

6263
if form is None:
6364
self.form = cgi.FieldStorage(environ=env)
@@ -1324,6 +1325,14 @@ def parsePropsFromForm(db, cl, form, nodeid=0):
13241325

13251326
#
13261327
# $Log: not supported by cvs2svn $
1328+
# Revision 1.107 2002/02/21 06:57:38 richard
1329+
# . Added popup help for classes using the classhelp html template function.
1330+
# - add <display call="classhelp('priority', 'id,name,description')">
1331+
# to an item page, and it generates a link to a popup window which displays
1332+
# the id, name and description for the priority class. The description
1333+
# field won't exist in most installations, but it will be added to the
1334+
# default templates.
1335+
#
13271336
# Revision 1.106 2002/02/21 06:23:00 richard
13281337
# *** empty log message ***
13291338
#

roundup/scripts/roundup_server.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#
1919
""" HTTP Server that serves roundup.
2020
21-
$Id: roundup_server.py,v 1.3 2002-02-21 06:57:39 richard Exp $
21+
$Id: roundup_server.py,v 1.4 2002-02-21 07:02:54 richard Exp $
2222
"""
2323

2424
# python version check
@@ -158,7 +158,7 @@ def inner_run_cgi(self):
158158
env['SCRIPT_NAME'] = ''
159159
env['SERVER_NAME'] = self.server.server_name
160160
env['SERVER_PORT'] = str(self.server.server_port)
161-
env['HOST'] = self.headers['host']
161+
env['HTTP_HOST'] = self.headers['host']
162162

163163
decoded_query = query.replace('+', ' ')
164164

@@ -249,6 +249,14 @@ def run():
249249

250250
#
251251
# $Log: not supported by cvs2svn $
252+
# Revision 1.3 2002/02/21 06:57:39 richard
253+
# . Added popup help for classes using the classhelp html template function.
254+
# - add <display call="classhelp('priority', 'id,name,description')">
255+
# to an item page, and it generates a link to a popup window which displays
256+
# the id, name and description for the priority class. The description
257+
# field won't exist in most installations, but it will be added to the
258+
# default templates.
259+
#
252260
# Revision 1.2 2002/01/29 20:07:15 jhermann
253261
# Conversion to generated script stubs
254262
#

0 commit comments

Comments
 (0)