You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ni...@apache.org on 2007/12/09 19:39:07 UTC

svn commit: r602715 - /httpd/httpd/branches/2.2.x/modules/proxy/mod_proxy.c

Author: niq
Date: Sun Dec  9 10:39:06 2007
New Revision: 602715

URL: http://svn.apache.org/viewvc?rev=602715&view=rev
Log:
r582635 was an INCORRECT backport of r581117 (my fault).
This corrects the error, bringing it in line with 581117
and the vote that was taken on that release.

Modified:
    httpd/httpd/branches/2.2.x/modules/proxy/mod_proxy.c

Modified: httpd/httpd/branches/2.2.x/modules/proxy/mod_proxy.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/modules/proxy/mod_proxy.c?rev=602715&r1=602714&r2=602715&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/modules/proxy/mod_proxy.c (original)
+++ httpd/httpd/branches/2.2.x/modules/proxy/mod_proxy.c Sun Dec  9 10:39:06 2007
@@ -719,9 +719,9 @@
         /* set configured max-forwards */
         maxfwd = conf->maxfwd;
     }
-    if (maxfwd > 0) {
+    if (maxfwd >= 0) {
         apr_table_set(r->headers_in, "Max-Forwards",
-                      apr_psprintf(r->pool, "%ld", (maxfwd > 0) ? maxfwd : 0));
+                      apr_psprintf(r->pool, "%ld", maxfwd));
     }
 
     if (r->method_number == M_TRACE) {