You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ol...@apache.org on 2004/02/15 15:16:28 UTC
cvs commit: jakarta-commons/httpclient/xdocs tutorial.xml
olegk 2004/02/15 06:16:28
Modified: httpclient/xdocs Tag: HTTPCLIENT_2_0_BRANCH 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
No revision
No revision
1.2.2.2 +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.2.2.1
retrieving revision 1.2.2.2
diff -u -r1.2.2.1 -r1.2.2.2
--- tutorial.xml 1 Sep 2003 17:06:09 -0000 1.2.2.1
+++ tutorial.xml 15 Feb 2004 14:16:28 -0000 1.2.2.2
@@ -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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org