]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
change default to disable100continue, we don't acutally handle this case at all anywa...
authorMichael Jerris <mike@jerris.com>
Thu, 25 Mar 2010 18:59:43 +0000 (18:59 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 25 Mar 2010 18:59:43 +0000 (18:59 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17102 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/autoload_configs/xml_curl.conf.xml
src/mod/xml_int/mod_xml_curl/mod_xml_curl.c

index a6ef3fab4df9691870ae14bc429489f15021bc1e..21e0af6b6804ff903c0df737a155b106134c0372 100644 (file)
@@ -9,8 +9,6 @@
       <!-- set this to provide authentication credentials to the server -->
       <!--<param name="gateway-credentials" value="muser:mypass"/>-->
       <!--<param name="auth-scheme" value="basic"/>-->
-      <!-- set to true to disable Expect: 100-continue lighttpd requires this setting -->
-      <!--<param name="disable-100-continue" value="true"/>-->
 
       <!-- optional: this will enable the CA root certificate check by libcurl to
            verify that the certificate was issued by a major Certificate Authority.
index 402314b48cee4b72076240ed0bb166779d9a905d..e0cda427b6c24b549ba755f61a8c484ce6bc0871 100644 (file)
@@ -350,7 +350,7 @@ static switch_status_t do_config(void)
                char *bind_cred = NULL;
                char *bind_mask = NULL;
                char *method = NULL;
-               int disable100continue = 0;
+               int disable100continue = 1;
                int use_dynamic_url = 0, timeout = 0;
                uint32_t enable_cacert_check = 0;
                char *ssl_cert_file = NULL;
@@ -394,8 +394,8 @@ static switch_status_t do_config(void)
                                } else if (!strcasecmp(val, "any")) {
                                        auth_scheme = CURLAUTH_ANY;
                                }
-                       } else if (!strcasecmp(var, "disable-100-continue") && switch_true(val)) {
-                               disable100continue = 1;
+                       } else if (!strcasecmp(var, "disable-100-continue") && !switch_true(val)) {
+                               disable100continue = 0;
                        } else if (!strcasecmp(var, "method")) {
                                method = val;
                        } else if (!strcasecmp(var, "timeout")) {