Update of /cvs-repository/Products/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv2606/CMFDefault

Modified Files:
        utils.py 
Log Message:
 - Forward port fix for collector #230 from 1.5 branch.


=== Products/CMFDefault/utils.py 1.27 => 1.28 ===
--- Products/CMFDefault/utils.py:1.27   Sun Oct 17 15:37:00 2004
+++ Products/CMFDefault/utils.py        Thu Jul  7 16:08:13 2005
@@ -45,6 +45,11 @@
     for key, value in headers:
 
         vallines = linesplit.split( value )
+        while vallines:
+            if vallines[-1].rstrip() == '':
+                vallines = vallines[:-1]
+            else:
+                break
         munged.append( '%s: %s' % ( key, '\r\n  '.join( vallines ) ) )
 
     return '\r\n'.join( munged )
@@ -99,7 +104,7 @@
 
     for line in lines:
 
-        if not line.strip():
+        if not line:
             break
 
         tokens = line.split( ': ' )

_______________________________________________
CMF-checkins mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/cmf-checkins

Reply via email to