Author: bombe
Date: 2006-05-27 17:44:53 +0000 (Sat, 27 May 2006)
New Revision: 8884

Modified:
   trunk/freenet/src/freenet/clients/http/HTTPRequest.java
Log:
don't forget to assign uri (prevents NPE when calling getPath() and using the 
(URI, Bucket, ToadletContext) constructor)

Modified: trunk/freenet/src/freenet/clients/http/HTTPRequest.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/HTTPRequest.java     2006-05-27 
12:32:04 UTC (rev 8883)
+++ trunk/freenet/src/freenet/clients/http/HTTPRequest.java     2006-05-27 
17:44:53 UTC (rev 8884)
@@ -109,6 +109,7 @@
         * @throws URISyntaxException if the URI is invalid
         */
        public HTTPRequest(URI uri, Bucket d, ToadletContext ctx) {
+               this.uri = uri;
                this.headers = ctx.getHeaders();
                this.parseRequestParameters(uri.getRawQuery(), true);
                this.data = d;


Reply via email to