]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4075
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 5 Apr 2012 15:27:47 +0000 (10:27 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 5 Apr 2012 16:18:18 +0000 (11:18 -0500)
conf/vanilla/autoload_configs/httapi.conf.xml
src/mod/applications/mod_httapi/docs/mod_httapi_doc.txt
src/mod/applications/mod_httapi/mod_httapi.c

index c2fe584a02d9eda8ba21ca75600ce40da31f470b..50bbe78f409e6e44ef001d748d312b9f96fbf905 100644 (file)
        <!-- <param name="cookie-file" value="/tmp/cookie-mod_xml_curl.txt"/> -->
 
        <!-- one or more of these imply you want to pick the exact variables that are transmitted -->
-       <!--<param name="enable-post-var" value="Unique-ID"/>-->
+       <!--<param name="enable-post-var" value="Caller-Unique-ID"/>-->
       </params>
 
     </profile>
index 8690a62fc89af7320b0bd37ed24db3cb9f5e82b9..99970d88c934790bcc40a775551103b39cc68c3f 100644 (file)
@@ -319,7 +319,7 @@ user-agent                  : <string>              mod_httapi/1.0  User Agent header value.
 
 
 <permissions>: * = default
-<permission name="" value="">
+<permission name="" value="true">
 
 *set-params                     : <params> tag can be parsed for session params.
 set-vars                        : <variables> tag can be parsed to set channel vars.
index fba77363631e8921df73f1d568eb4289e88ab4f5..2c93cf02bd86b98a0cd76ee3d03ca3bbcf4ca6c0 100644 (file)
@@ -1498,7 +1498,7 @@ static switch_status_t httapi_sync(client_t *client)
 
        switch_curl_easy_setopt(curl_handle, CURLOPT_HTTPHEADER, headers);
 
-       if (method != NULL && strcasecmp(method, "get") && strcasecmp(method, "post")) {
+       if (!zstr(method)) {
                switch_curl_easy_setopt(curl_handle, CURLOPT_CUSTOMREQUEST, method);
        }