git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5155 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-05-11 18:21:36 +00:00
parent 0272fcb2a0
commit f00642d7ab
1 changed files with 5 additions and 5 deletions

View File

@ -117,10 +117,10 @@ static switch_xml_t xml_url_fetch(const char *section, const char *tag_name, con
curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, file_callback);
curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *) &config_data);
curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "freeswitch-xml/1.0");
if (binding->disable100continue) {
slist = curl_slist_append(slist,"Expect:");
curl_easy_setopt(curl_handle, CURLOPT_HTTPHEADER, slist);
if (binding->disable100continue) {
slist = curl_slist_append(slist,"Expect:");
curl_easy_setopt(curl_handle, CURLOPT_HTTPHEADER, slist);
}
curl_easy_perform(curl_handle);
@ -189,7 +189,7 @@ static switch_status_t do_config(void)
}
} else if (!strcasecmp(var, "gateway-credentials")) {
bind_cred = val;
} else if (!strcasecmp(var, "disable-100-continue ") && switch_true(val)) {
} else if (!strcasecmp(var, "disable-100-continue") && switch_true(val)) {
disable100continue = 1;
}
}