mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-20 02:04:54 +00:00
FSMOD-69 - mod_curl - use method=post when post requested
This commit is contained in:
parent
3e2056833b
commit
c6a4ddd0ba
1
src/mod/applications/mod_curl/mod_curl.c
Executable file → Normal file
1
src/mod/applications/mod_curl/mod_curl.c
Executable file → Normal file
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user