mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
FSMOD-69 - mod_curl - use method=post when post requested
This commit is contained in:
Executable → Regular
+1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user