[freenet-dev] [freenet-cvs] r12201 - trunk/freenet/src/freenet/clients/http

Florent Daignière (NextGen$) nextgens at freenetproject.org
Sun Mar 18 01:26:19 UTC 2007


* toad at freenetproject.org <toad at freenetproject.org> [2007-03-17 22:52:44]:

When are we closing lis then ?

> Author: toad
> Date: 2007-03-17 22:52:43 +0000 (Sat, 17 Mar 2007)
> New Revision: 12201
> 
> Modified:
>    trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java
> Log:
> Fix HTTPRequestImpl for POST forms
> 
> Modified: trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java
> ===================================================================
> --- trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java	2007-03-17 22:32:20 UTC (rev 12200)
> +++ trunk/freenet/src/freenet/clients/http/HTTPRequestImpl.java	2007-03-17 22:52:43 UTC (rev 12201)
> @@ -127,7 +127,7 @@
>  		try {
>  			this.parseMultiPartData();
>  		} catch (IOException ioe) {
> -			
> +			Logger.error(this, "Temporary files error ? Could not parse: "+ioe, ioe);
>  		}
>  	}
>  	
> @@ -464,8 +464,6 @@
>  					// Do nothing, irrelevant header
>  				}
>  			}
> -			lis.close();
> -			bis.close();
>  			
>  			if (name == null) continue;
>  			
> @@ -505,6 +503,8 @@
>  				uploadedFiles.put(name, new HTTPUploadedFileImpl(filename, contentType, filedata));
>  			}
>  		}
> +		
> +		bis.close();
>  	}
>  	
>  	/* (non-Javadoc)
> 
> _______________________________________________
> cvs mailing list
> cvs at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs



More information about the Devl mailing list