Skip to content

Commit d90f8d2

Browse files
author
Richard Jones
committed
Fixed HTTP headers for top-level index in CGI script
1 parent 67598c1 commit d90f8d2

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

MIGRATION.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,11 @@ MESSAGES_TO_AUTHOR has been added to the IssueClass in dbinit.py. Set to 'yes'
8181
to send nosy messages to the author. Default behaviour is to not send nosy
8282
messages to the author.
8383

84+
85+
CGI script roundup.cgi
86+
----------------------
87+
There have been some structural changes to the roundup.cgi script - you will
88+
need to install it again from the cgi-bin directory of the source
89+
distribution. Make sure you update the ROUNDUP_INSTANCE_HOMES after the
90+
copy.
91+

cgi-bin/roundup.cgi

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: roundup.cgi,v 1.16 2001-11-01 22:04:37 richard Exp $
19+
# $Id: roundup.cgi,v 1.17 2001-11-06 21:51:19 richard Exp $
2020

2121
# python version check
2222
import sys
@@ -68,7 +68,7 @@ class RequestWrapper:
6868
self.wfile.write('Status: %s\r\n'%code)
6969
def send_header(self, keyword, value):
7070
self.wfile.write("%s: %s\r\n" % (keyword, value))
71-
def end_headers(self, keyword, value):
71+
def end_headers(self):
7272
self.wfile.write("\r\n")
7373

7474
def main(out, err):
@@ -100,6 +100,7 @@ def main(out, err):
100100
import urllib
101101
request.send_response(200)
102102
request.send_header('Content-Type', 'text/html')
103+
request.end_headers()
103104
w = request.wfile.write
104105
w('<html><head><title>Roundup instances index</title></head>\n')
105106
w('<body><h1>Roundup instances index</h1><ol>\n')
@@ -127,6 +128,12 @@ sys.stdout, sys.stderr = out, err
127128

128129
#
129130
# $Log: not supported by cvs2svn $
131+
# Revision 1.16 2001/11/01 22:04:37 richard
132+
# Started work on supporting a pop3-fetching server
133+
# Fixed bugs:
134+
# . bug #477104 ] HTML tag error in roundup-server
135+
# . bug #477107 ] HTTP header problem
136+
#
130137
# Revision 1.15 2001/10/29 23:55:44 richard
131138
# Fix to CGI top-level index (thanks Juergen Hermann)
132139
#

0 commit comments

Comments
 (0)