ozeigermann 2004/04/19 06:40:13
Modified: webdavclient/commandline/src/java/org/apache/webdav/cmd Tag:
SLIDE_2_0_RELEASE_BRANCH Client.java
Log:
Undid changes in http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=11047
as it broke report methods.
Revision Changes Path
No revision
No revision
1.2.2.7 +5 -9
jakarta-slide/webdavclient/commandline/src/java/org/apache/webdav/cmd/Client.java
Index: Client.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/webdavclient/commandline/src/java/org/apache/webdav/cmd/Client.java,v
retrieving revision 1.2.2.6
retrieving revision 1.2.2.7
diff -u -r1.2.2.6 -r1.2.2.7
--- Client.java 6 Apr 2004 10:17:05 -0000 1.2.2.6
+++ Client.java 19 Apr 2004 13:40:13 -0000 1.2.2.7
@@ -1924,12 +1924,8 @@
}
private static HttpURL uriToHttpURL(String uri) throws URIException {
- if (uri.startsWith("http://")) {
- return new HttpURL(uri.toCharArray());
- }else if (uri.startsWith("https://")) {
- return new HttpsURL(uri.toCharArray());
- } else {
- throw new URIException("Unknown protocol in URL " + uri);
+ return uri.startsWith("https") ? new HttpsURL(uri.toCharArray())
+ : new HttpURL(uri.toCharArray());
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]