You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by iv...@apache.org on 2013/01/21 11:08:17 UTC

svn commit: r1436253 - /subversion/trunk/subversion/libsvn_ra_serf/serf.c

Author: ivan
Date: Mon Jan 21 10:08:17 2013
New Revision: 1436253

URL: http://svn.apache.org/viewvc?rev=1436253&view=rev
Log:
ra_serf: Fix a bug that HTTP global proxy settings are not applied when 
http-proxy-exceptions is not set.

* subversion/libsvn_ra_serf/serf.c
  (load_config): Use empty string as default value for http proxy 
   exceptions list instead of NULL.

Modified:
    subversion/trunk/subversion/libsvn_ra_serf/serf.c

Modified: subversion/trunk/subversion/libsvn_ra_serf/serf.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/serf.c?rev=1436253&r1=1436252&r2=1436253&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/serf.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/serf.c Mon Jan 21 10:08:17 2013
@@ -187,24 +187,21 @@ load_config(svn_ra_serf__session_t *sess
   /* Use the default proxy-specific settings if and only if
      "http-proxy-exceptions" is not set to exclude this host. */
   svn_config_get(config, &exceptions, SVN_CONFIG_SECTION_GLOBAL,
-                 SVN_CONFIG_OPTION_HTTP_PROXY_EXCEPTIONS, NULL);
-  if (exceptions)
-    {
-      if (! svn_cstring_match_glob_list(session->session_url.hostname,
-                                        svn_cstring_split(exceptions, ",",
-                                                          TRUE, pool)))
-        {
-          svn_config_get(config, &proxy_host, SVN_CONFIG_SECTION_GLOBAL,
-                         SVN_CONFIG_OPTION_HTTP_PROXY_HOST, NULL);
-          svn_config_get(config, &port_str, SVN_CONFIG_SECTION_GLOBAL,
-                         SVN_CONFIG_OPTION_HTTP_PROXY_PORT, NULL);
-          svn_config_get(config, &session->proxy_username,
-                         SVN_CONFIG_SECTION_GLOBAL,
-                         SVN_CONFIG_OPTION_HTTP_PROXY_USERNAME, NULL);
-          svn_config_get(config, &session->proxy_password,
-                         SVN_CONFIG_SECTION_GLOBAL,
-                         SVN_CONFIG_OPTION_HTTP_PROXY_PASSWORD, NULL);
-        }
+                 SVN_CONFIG_OPTION_HTTP_PROXY_EXCEPTIONS, "");
+  if (! svn_cstring_match_glob_list(session->session_url.hostname,
+                                    svn_cstring_split(exceptions, ",",
+                                                      TRUE, pool)))
+    {
+      svn_config_get(config, &proxy_host, SVN_CONFIG_SECTION_GLOBAL,
+                     SVN_CONFIG_OPTION_HTTP_PROXY_HOST, NULL);
+      svn_config_get(config, &port_str, SVN_CONFIG_SECTION_GLOBAL,
+                     SVN_CONFIG_OPTION_HTTP_PROXY_PORT, NULL);
+      svn_config_get(config, &session->proxy_username,
+                     SVN_CONFIG_SECTION_GLOBAL,
+                     SVN_CONFIG_OPTION_HTTP_PROXY_USERNAME, NULL);
+      svn_config_get(config, &session->proxy_password,
+                     SVN_CONFIG_SECTION_GLOBAL,
+                     SVN_CONFIG_OPTION_HTTP_PROXY_PASSWORD, NULL);
     }
 
   /* Load the global ssl settings, if set. */