olegk 2004/02/15 06:17:03
Modified: httpclient/xdocs tutorial.xml
Log:
Corrects a mistake in the HttpClient tutorial: 'attempt' variable isn't incremented
Reported by Derek Alexander <dalexander at ukgateway.net>
Contributed by Oleg Kalnichevski
Revision Changes Path
1.4 +2 -2 jakarta-commons/httpclient/xdocs/tutorial.xml
Index: tutorial.xml
===================================================================
RCS file: /home/cvs/jakarta-commons/httpclient/xdocs/tutorial.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- tutorial.xml 1 Sep 2003 17:07:31 -0000 1.3
+++ tutorial.xml 15 Feb 2004 14:17:03 -0000 1.4
@@ -212,7 +212,7 @@
int statusCode = -1;
int attempt = 0;
// We will retry up to 3 times.
- while (statusCode == -1 && attempt < 3) {
+ while (statusCode == -1 && attempt < 3; attempt++) {
try {
// execute the method.
statusCode = client.executeMethod(method);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]