Ray.Allen <ysj....@gmail.com> added the comment:

Yes, I saw the "<!--: spam" string in headers, but it seems that this string 
doesn't make problems. The displaying page is correct.


But after I apply the changes you mentioned:
-    return '''<!--: spam
+    return '''\r\n\r\n<!--: spam


I got text/plain output, and the response headers are like this:

    Date        Fri, 14 May 2010 07:30:03 GMT
    Server      Apache/2.2.15 (Unix)
    Keep-Alive  timeout=5, max=100
    Connection  Keep-Alive
    Transfer-Encoding   chunked
    Content-Type        text/plain



And the content is like this:

<!--: spam
Content-Type: text/html

<body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> -->
<body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> --> -->

......



So the hole page is not displayed correctly!

Is there any problem with me?

----------
nosy: +ysj.ray

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8704>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to