--- /home/mailman/src/moin-1.2.1/MoinMoin/request.py 2004-03-06 19:15:10.000000000 -0500 +++ request.py 2004-04-15 11:22:12.000000000 -0400 @@ -908,10 +908,9 @@ def setup_args(self): self.env['REQUEST_METHOD'] = self.request_method self.env['QUERY_STRING'] = self.query_string - #if self.headers.typeheader is None: - # self.env['CONTENT_TYPE'] = self.headers.type - #else: - # self.env['CONTENT_TYPE'] = self.headers.typeheader + ct = self.headers.getheader('content-type') + if ct: + self.env['CONTENT_TYPE'] = ct cl = self.headers.getheader('content-length') if cl: self.env['CONTENT_LENGTH'] = cl @@ -930,6 +929,15 @@ else: return self.rfile.read(n) + def readline (self): + L = "" + while 1: + c = self.read(1) + L += c + if c == '\n': + break + return L + def write(self, *data): """ Write to output stream. """