Author: toad
Date: 2007-07-07 00:20:19 +0000 (Sat, 07 Jul 2007)
New Revision: 13979
Modified:
trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java
Log:
Fix the multipart parsing bug... hopefully.
Modified: trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java 2007-07-07
00:17:55 UTC (rev 13978)
+++ trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java 2007-07-07
00:20:19 UTC (rev 13979)
@@ -497,6 +497,11 @@
if(logMINOR)
Logger.minor(this, "Partial
match: "+offset+" of "+bbound.length+" matched, no more because b = "+b);
offset = 0;
+ if(b == bbound[0]) {
+ offset = 1;
+ if(logMINOR)
+ Logger.minor(this,
"Matched "+offset+" of "+bbound.length+" : "+b+" after reset");
+ }
} else {
bbos.write((int) b & 0xff);
if(logMINOR)