Author: toad
Date: 2008-02-09 12:44:02 +0000 (Sat, 09 Feb 2008)
New Revision: 17741

Modified:
   trunk/freenet/src/freenet/clients/http/filter/PNGFilter.java
Log:
Doh

Modified: trunk/freenet/src/freenet/clients/http/filter/PNGFilter.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/filter/PNGFilter.java        
2008-02-09 12:42:53 UTC (rev 17740)
+++ trunk/freenet/src/freenet/clients/http/filter/PNGFilter.java        
2008-02-09 12:44:02 UTC (rev 17741)
@@ -231,7 +231,7 @@
                                }
                                lastChunkType = chunkTypeString;
                        }
-                       if(finished && dis.available() > 0)
+                       if(finished && dis.available() > 0 && output == null)
                                throw new IOException("IEND not last chunk");

                        dis.close();


Reply via email to