[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit HttpUnitOptions.java,1.38,1.39 WebRequest
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2003-03-27 03:36:41
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit
In directory sc8-pr-cvs1:/tmp/cvs-serv20388/src/com/meterware/httpunit
Modified Files:
HttpUnitOptions.java WebRequestSource.java
Log Message:
don't chop off javascript URLs at pound sign
Index: HttpUnitOptions.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/HttpUnitOptions.java,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- HttpUnitOptions.java 16 Mar 2003 17:22:38 -0000 1.38
+++ HttpUnitOptions.java 27 Mar 2003 03:36:37 -0000 1.39
@@ -48,7 +48,7 @@
_loggingHttpHeaders = false;
_matchesIgnoreCase = true;
_checkContentLength = false;
- _redirectDelay = 0;
+ _redirectDelay = 0; // TODO move this to ClientProperties
_characterSet = HttpUnitUtils.DEFAULT_CHARACTER_SET;
_contentType = DEFAULT_CONTENT_TYPE;
_postIncludesCharset = false;
Index: WebRequestSource.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/WebRequestSource.java,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- WebRequestSource.java 24 Mar 2003 15:04:31 -0000 1.26
+++ WebRequestSource.java 27 Mar 2003 03:36:37 -0000 1.27
@@ -142,6 +142,7 @@
private String trimFragment( String href ) {
+ if (href.startsWith( "javascript:" )) return href;
final int hashIndex = href.indexOf( '#' );
if (hashIndex < 0) {
return href;
|