diff --git a/cgi-bin/roundup.cgi b/cgi-bin/roundup.cgi
index 65c9436864ea0c8064dd97718b623c13f328ed00..e755c08bab4854d88e1495a0a8977a88a5feebde 100755 (executable)
--- a/cgi-bin/roundup.cgi
+++ b/cgi-bin/roundup.cgi
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: roundup.cgi,v 1.18 2001-11-06 22:10:11 jhermann Exp $
+# $Id: roundup.cgi,v 1.19 2001-11-22 00:25:10 richard Exp $
# python version check
import sys
request.send_response(200)
request.send_header('Content-Type', 'text/html')
request.end_headers()
- w = request.wfile.write
+ w = request.write
w('<html><head><title>Roundup instances index</title></head>\n')
w('<body><h1>Roundup instances index</h1><ol>\n')
homes = ROUNDUP_INSTANCE_HOMES.keys()
#
out, err = sys.stdout, sys.stderr
try:
+ # force input/output to binary (important for file up/downloads)
+ if sys.platform == "win32":
+ import os, msvcrt
+ msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY)
+ msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
checkconfig()
sys.stdout = sys.stderr = LOG
main(out, err)
#
# $Log: not supported by cvs2svn $
+# Revision 1.18 2001/11/06 22:10:11 jhermann
+# Added env config; fixed request wrapper & index list; sort list by key
+#
# Revision 1.17 2001/11/06 21:51:19 richard
# Fixed HTTP headers for top-level index in CGI script
#