Commit a925db54 authored by 's avatar

Added a fix required because IE5 is too stupid to know that 204 means success.

parent 45721730
......@@ -84,8 +84,8 @@
##############################################################################
'''CGI Response Output formatter
$Id: HTTPResponse.py,v 1.6 1999/03/11 14:28:24 brian Exp $'''
__version__='$Revision: 1.6 $'[11:-2]
$Id: HTTPResponse.py,v 1.7 1999/03/18 20:16:59 brian Exp $'''
__version__='$Revision: 1.7 $'[11:-2]
import string, types, sys, regex
from string import find, rfind, lower, upper, strip, split, join, translate
......@@ -630,8 +630,8 @@ class HTTPResponse(BaseResponse):
self.setBody(body)
body=self.body
if not headers.has_key('content-type') and self.status == 200:
self.setStatus('nocontent')
# if not headers.has_key('content-type') and self.status == 200:
# self.setStatus('nocontent')
if not headers.has_key('content-length'):
self.setHeader('content-length',len(body))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment