[pywin32-checkins] pywin32/isapi threaded_extension.py,1.1,1.2
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: Mark H. <mha...@us...> - 2004-10-26 01:29:41
|
Update of /cvsroot/pywin32/pywin32/isapi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21432 Modified Files: threaded_extension.py Log Message: Move the error handler's SendResponseHeaders into the exception handler. Index: threaded_extension.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/isapi/threaded_extension.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** threaded_extension.py 6 Oct 2004 05:11:52 -0000 1.1 --- threaded_extension.py 26 Oct 2004 01:29:32 -0000 1.2 *************** *** 140,145 **** ecb.HttpStatusCode = isapicon.HSE_STATUS_ERROR #control_block.LogData = "we failed!" - ecb.SendResponseHeaders("200 OK", "Content-type: text/html\r\n\r\n", - False) exc_typ, exc_val, exc_tb = sys.exc_info() limit = None --- 140,143 ---- *************** *** 147,150 **** --- 145,150 ---- try: import cgi + ecb.SendResponseHeaders("200 OK", "Content-type: text/html\r\n\r\n", + False) print >> ecb print >> ecb, "<H3>Traceback (most recent call last):</H3>" |