Revision
17102
Author
mikej
Date
2010-03-25 13:59:43 -0500 (Thu, 25 Mar 2010)

Log Message

change default to disable100continue, we don't acutally handle this case at all anyways, it just causes the request to fail

Modified Paths

Diff

Modified: freeswitch/trunk/conf/autoload_configs/xml_curl.conf.xml (17101 => 17102)


--- freeswitch/trunk/conf/autoload_configs/xml_curl.conf.xml	2010-03-25 16:21:47 UTC (rev 17101)
+++ freeswitch/trunk/conf/autoload_configs/xml_curl.conf.xml	2010-03-25 18:59:43 UTC (rev 17102)
@@ -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.

Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c (17101 => 17102)


--- freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c	2010-03-25 16:21:47 UTC (rev 17101)
+++ freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c	2010-03-25 18:59:43 UTC (rev 17102)
@@ -350,7 +350,7 @@
 		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 @@
 				} 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")) {