Index: WebKit/ASStreamOut.py
===================================================================
RCS file: /home/jdhildeb/projects/mobile/cvs/Webware/WebKit/ASStreamOut.py,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 ASStreamOut.py
--- WebKit/ASStreamOut.py	2002/08/17 20:30:44	1.1.1.1
+++ WebKit/ASStreamOut.py	2002/09/04 17:03:55
@@ -71,6 +71,19 @@
 		self._chunkLen = 0
 		return 1
 
+	def buffer(self):
+		'''
+		Return accumulated data which has not yet been flushed.  We want to be able to get at
+		this data without having to call flush first, so that we can (for example) integrate
+		automatic HTML validation.
+		'''
+		# if flush has been called, return what was flushed
+		if self._buffer:
+			return self._buffer
+		# otherwise return the buffered chunks 
+		else:
+			return string.join(self._chunks,'')
+
 	def clear(self):
 		"""
 		Try to clear any accumulated response data.  Will fail if the response is already sommitted.
Index: WebKit/HTTPResponse.py
===================================================================
RCS file: /home/jdhildeb/projects/mobile/cvs/Webware/WebKit/HTTPResponse.py,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 HTTPResponse.py
--- WebKit/HTTPResponse.py	2002/08/17 20:30:44	1.1.1.1
+++ WebKit/HTTPResponse.py	2002/09/04 15:44:25
@@ -254,7 +254,7 @@
 			headers.append(('Set-Cookie', cookie.headerValue()))
 		return {
 			'headers': headers,
-			'contents': self._strmOut._buffer
+			'contents': self._strmOut.buffer()
 		}
 
 	def size(self):

