]> granicus.if.org Git - apache/commitdiff
reformat only (get rid of unnecessary block scope)
authorJeff Trawick <trawick@apache.org>
Mon, 5 May 2014 12:40:47 +0000 (12:40 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 5 May 2014 12:40:47 +0000 (12:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1592511 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_util.c

index f57f208e44dc196ab7383795b03a20a2069928a2..9eb6aa80b647cee603635f8a9d47a6b6c6c34ed3 100644 (file)
@@ -2328,16 +2328,15 @@ ap_proxy_determine_connection(apr_pool_t *p, request_rec *r,
     }
 
     /* 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)) {