FSMOD-69 - mod_curl - use method=post when post requested

This commit is contained in:
Rupa Schomaker 2010-09-01 07:00:33 -05:00
parent 3e2056833b
commit c6a4ddd0ba
1 changed files with 1 additions and 0 deletions

1
src/mod/applications/mod_curl/mod_curl.c Executable file → Normal file
View 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);