提交 5903c2d3 authored 作者: Michael Jerris's avatar Michael Jerris

change default to disable100continue, we don't acutally handle this case at all…

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

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17102 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 1aa878c5
......@@ -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.
......
......@@ -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")) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论