Update of /cvsroot/tmda/tmda/contrib/cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv9982

Modified Files:
        tmda-cgi.py 
Log Message:
Moved content-type output to earlier in code so that errors will be correctly
displayed.


Index: tmda-cgi.py
===================================================================
RCS file: /cvsroot/tmda/tmda/contrib/cgi/tmda-cgi.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- tmda-cgi.py 12 Dec 2002 22:26:23 -0000      1.5
+++ tmda-cgi.py 2 Jan 2003 22:24:31 -0000       1.6
@@ -38,6 +38,8 @@
     PVars: UID, GID, MiscUID, MiscGID, User, HOME, Headers, MsgID
 """
 
+print "Content-type: text/html\n"
+
 import cgi
 import cgitb; cgitb.enable()
 import os
@@ -57,8 +59,6 @@
 
 def main():
   "Figure out which page we're on and pass control along."
-
-  print "Content-type: text/html\n"
 
   # First visit to any page?
   if not Form.keys():

_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs

Reply via email to