You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2014/05/05 14:40:48 UTC

svn commit: r1592511 - /httpd/httpd/trunk/modules/proxy/proxy_util.c

Author: trawick
Date: Mon May  5 12:40:47 2014
New Revision: 1592511

URL: http://svn.apache.org/r1592511
Log:
reformat only (get rid of unnecessary block scope)

Modified:
    httpd/httpd/trunk/modules/proxy/proxy_util.c

Modified: httpd/httpd/trunk/modules/proxy/proxy_util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/proxy_util.c?rev=1592511&r1=1592510&r2=1592511&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/proxy_util.c (original)
+++ httpd/httpd/trunk/modules/proxy/proxy_util.c Mon May  5 12:40:47 2014
@@ -2328,16 +2328,15 @@ ap_proxy_determine_connection(apr_pool_t
     }
 
     /* Get the server port for the Via headers */
-    {
-        server_port = ap_get_server_port(r);
-        if (ap_is_default_port(server_port, r)) {
-            strcpy(server_portstr,"");
-        }
-        else {
-            apr_snprintf(server_portstr, server_portstr_size, ":%d",
-                         server_port);
-        }
+    server_port = ap_get_server_port(r);
+    if (ap_is_default_port(server_port, r)) {
+        strcpy(server_portstr,"");
     }
+    else {
+        apr_snprintf(server_portstr, server_portstr_size, ":%d",
+                     server_port);
+    }
+
     /* check if ProxyBlock directive on this host */
     if (OK != ap_proxy_checkproxyblock(r, conf, uri->hostname, 
                                        proxyname ? NULL : conn->addr)) {