]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSMOD-69 - mod_curl - use method=post when post requested
authorRupa Schomaker <rupa@rupa.com>
Wed, 1 Sep 2010 12:00:33 +0000 (07:00 -0500)
committerRupa Schomaker <rupa@rupa.com>
Wed, 1 Sep 2010 12:00:33 +0000 (07:00 -0500)
src/mod/applications/mod_curl/mod_curl.c [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 9081ca6..4f6aefd
@@ -272,6 +272,7 @@ SWITCH_STANDARD_APP(curl_app_function)
                        } else if (!strcasecmp("get", argv[i]) || !strcasecmp("head", argv[i])) {
                                method = switch_core_strdup(pool, argv[i]);
                        } else if (!strcasecmp("post", argv[i])) {
+                               method = "post";
                                if (++i < argc) {
                                        postdata = switch_core_strdup(pool, argv[i]);
                                        switch_url_decode(postdata);