Author: toad
Date: 2007-07-07 00:21:34 +0000 (Sat, 07 Jul 2007)
New Revision: 13980

Modified:
   trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java
Log:
doh

Modified: trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java 2007-07-07 
00:20:19 UTC (rev 13979)
+++ trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java 2007-07-07 
00:21:34 UTC (rev 13980)
@@ -493,7 +493,6 @@
                                        // offset bytes matched, but no more
                                        // write the bytes that matched, then 
the non-matching byte
                                        bbos.write(bbound, 0, offset);
-                                       bbos.write((int) b & 0xff);
                                        if(logMINOR)
                                                Logger.minor(this, "Partial 
match: "+offset+" of "+bbound.length+" matched, no more because b = "+b);
                                        offset = 0;
@@ -501,6 +500,8 @@
                                                offset = 1;
                                                if(logMINOR)
                                                        Logger.minor(this, 
"Matched "+offset+" of "+bbound.length+" : "+b+" after reset");
+                                       } else {
+                                               bbos.write((int) b & 0xff);
                                        }
                                } else {
                                        bbos.write((int) b & 0xff);


Reply via email to