W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2009

2006/unicorn/src/org/w3c/unicorn/request URIRequest.java,1.3,1.4

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 09 Sep 2009 12:09:40 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MlLzY-0001dE-OV@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/request
In directory hutz:/tmp/cvs-serv6242/src/org/w3c/unicorn/request

Modified Files:
	URIRequest.java 
Log Message:
added requestUri to object Response

Index: URIRequest.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/request/URIRequest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- URIRequest.java	3 Sep 2009 16:43:19 -0000	1.3
+++ URIRequest.java	9 Sep 2009 12:09:38 -0000	1.4
@@ -116,7 +116,11 @@
 
 		aURLConnection.setRequestProperty("Accept-Language", this.sLang);
 		InputStream is = aURLConnection.getInputStream();
-		return streamToResponse(is);
+		Response response = streamToResponse(is);
+		
+		response.setRequestUri(aURL.toString());
+		
+		return response;
 	}
 
 	@Override
Received on Wednesday, 9 September 2009 12:09:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:14 GMT