From 2ff85c558ac895c7fe94eea6cc5486eca7a31344 Mon Sep 17 00:00:00 2001 From: richard Date: Tue, 6 Nov 2001 21:51:19 +0000 Subject: [PATCH] Fixed HTTP headers for top-level index in CGI script git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@367 57a73879-2fb5-44c3-a270-3262357dd7e2 --- MIGRATION.txt | 8 ++++++++ cgi-bin/roundup.cgi | 11 +++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/MIGRATION.txt b/MIGRATION.txt index 19ed5bd..3c9ead1 100644 --- a/MIGRATION.txt +++ b/MIGRATION.txt @@ -81,3 +81,11 @@ MESSAGES_TO_AUTHOR has been added to the IssueClass in dbinit.py. Set to 'yes' to send nosy messages to the author. Default behaviour is to not send nosy messages to the author. + +CGI script roundup.cgi +---------------------- +There have been some structural changes to the roundup.cgi script - you will +need to install it again from the cgi-bin directory of the source +distribution. Make sure you update the ROUNDUP_INSTANCE_HOMES after the +copy. + diff --git a/cgi-bin/roundup.cgi b/cgi-bin/roundup.cgi index ad92274..7e38c42 100755 --- a/cgi-bin/roundup.cgi +++ b/cgi-bin/roundup.cgi @@ -16,7 +16,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: roundup.cgi,v 1.16 2001-11-01 22:04:37 richard Exp $ +# $Id: roundup.cgi,v 1.17 2001-11-06 21:51:19 richard Exp $ # python version check import sys @@ -68,7 +68,7 @@ class RequestWrapper: self.wfile.write('Status: %s\r\n'%code) def send_header(self, keyword, value): self.wfile.write("%s: %s\r\n" % (keyword, value)) - def end_headers(self, keyword, value): + def end_headers(self): self.wfile.write("\r\n") def main(out, err): @@ -100,6 +100,7 @@ def main(out, err): import urllib request.send_response(200) request.send_header('Content-Type', 'text/html') + request.end_headers() w = request.wfile.write w('Roundup instances index\n') w('

Roundup instances index

    \n') @@ -127,6 +128,12 @@ sys.stdout, sys.stderr = out, err # # $Log: not supported by cvs2svn $ +# Revision 1.16 2001/11/01 22:04:37 richard +# Started work on supporting a pop3-fetching server +# Fixed bugs: +# . bug #477104 ] HTML tag error in roundup-server +# . bug #477107 ] HTTP header problem +# # Revision 1.15 2001/10/29 23:55:44 richard # Fix to CGI top-level index (thanks Juergen Hermann) # -- 2.30.2