[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit WebResponse.java,1.118,1.119
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2003-05-04 15:42:11
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit
In directory sc8-pr-cvs1:/tmp/cvs-serv5892/src/com/meterware/httpunit
Modified Files:
WebResponse.java
Log Message:
bug #717640: <base> element was not being handled in the case when no host was specified.
Index: WebResponse.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/WebResponse.java,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -r1.118 -r1.119
--- WebResponse.java 4 Apr 2003 14:51:28 -0000 1.118
+++ WebResponse.java 4 May 2003 15:38:03 -0000 1.119
@@ -805,15 +805,11 @@
private InputStream _inputStream;
+ private final URL _pageURL;
- // the following variables are essentially final; however, the JDK 1.1 compiler does not handle blank final variables properly with
- // multiple constructors that call each other, so the final qualifiers have been removed.
+ private final String _frameName;
- private URL _pageURL;
-
- private String _frameName;
-
- private WebClient _client;
+ private final WebClient _client;
private Scriptable _scriptable;
@@ -864,7 +860,7 @@
private void processBaseTag( ByteTag tag ) throws MalformedURLException {
- if (tag.getAttribute( "href" ) != null) _baseURL = new URL( tag.getAttribute( "href" ) );
+ if (tag.getAttribute( "href" ) != null) _baseURL = new URL( getURL(), tag.getAttribute( "href" ) );
if (tag.getAttribute( "target" ) != null) _baseTarget = tag.getAttribute( "target" );
}
|