FSMOD-69 - mod_curl - use method=post when post requested
This commit is contained in:
parent
3e2056833b
commit
c6a4ddd0ba
|
@ -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…
Reference in New Issue