Don't prepend the URI prefix to the post directory
authorTerry Wilson <twilson@digium.com>
Tue, 27 Oct 2009 16:48:54 +0000 (16:48 +0000)
committerTerry Wilson <twilson@digium.com>
Tue, 27 Oct 2009 16:48:54 +0000 (16:48 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@226099 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_http_post.c

index 4a34162..5fff5d8 100644 (file)
@@ -445,7 +445,7 @@ static int __ast_http_post_load(int reload)
 
                        urih->description = ast_strdup("HTTP POST mapping");
                        urih->uri = ast_strdup(v->name);
 
                        urih->description = ast_strdup("HTTP POST mapping");
                        urih->uri = ast_strdup(v->name);
-                       ast_str_set(&ds, 0, "%s/%s", prefix, v->value);
+                       ast_str_set(&ds, 0, "%s", v->value);
                        urih->data = ds;
                        urih->has_subtree = 0;
                        urih->callback = http_post_callback;
                        urih->data = ds;
                        urih->has_subtree = 0;
                        urih->callback = http_post_callback;