[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit AuthorizationRequiredException.java,1.2,1
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2001-04-02 19:54:33
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit
In directory usw-pr-cvs1:/tmp/cvs-serv7923/src/com/meterware/httpunit
Modified Files:
AuthorizationRequiredException.java
MimeEncodedMessageBody.java WebRequest.java
Log Message:
Miscellaneous cleanup
Index: AuthorizationRequiredException.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/AuthorizationRequiredException.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- AuthorizationRequiredException.java 2001/04/02 19:35:46 1.2
+++ AuthorizationRequiredException.java 2001/04/02 19:54:29 1.3
@@ -33,7 +33,7 @@
int i = wwwAuthenticateHeader.indexOf( ' ' );
if (i < 0) { // non-conforming header
_scheme = "Basic";
- _params = wwwAuthenticationHeader;
+ _params = wwwAuthenticateHeader;
} else {
_scheme = wwwAuthenticateHeader.substring( 0, i );
_params = wwwAuthenticateHeader.substring( i+1 );
Index: MimeEncodedMessageBody.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/MimeEncodedMessageBody.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- MimeEncodedMessageBody.java 2001/04/02 19:07:36 1.2
+++ MimeEncodedMessageBody.java 2001/04/02 19:54:29 1.3
@@ -44,7 +44,7 @@
* Updates the headers for this request as needed.
**/
void updateHeaders( URLConnection connection ) throws IOException {
- connection.setRequestProperty( "Content-type", "multipart/form-data;boundary=\"" + BOUNDARY + "\"" );
+ connection.setRequestProperty( "Content-type", "multipart/form-data; boundary=" + BOUNDARY );
}
Index: WebRequest.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/WebRequest.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- WebRequest.java 2001/03/23 20:50:41 1.15
+++ WebRequest.java 2001/04/02 19:54:29 1.16
@@ -356,12 +356,13 @@
result.append( '+' );
} else if ((candidate >= 'A' && candidate <= 'Z') ||
(candidate >= 'a' && candidate <= 'z') ||
+ (candidate == '.') ||
(candidate >= '0' && candidate <= '9')) {
result.append( (char) rawBytes[i] );
} else if (candidate < 16) {
- result.append( "%0" ).append( Integer.toHexString( candidate ) );
+ result.append( "%0" ).append( Integer.toHexString( candidate ).toUpperCase() );
} else {
- result.append( '%' ).append( Integer.toHexString( candidate ) );
+ result.append( '%' ).append( Integer.toHexString( candidate ).toUpperCase() );
}
}
return result.toString();
|