handler: rename set_uri to rewrite
authorFelix Fietkau <nbd@openwrt.org>
Sun, 8 Nov 2015 19:10:02 +0000 (20:10 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 8 Nov 2015 19:10:02 +0000 (20:10 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
handler.c

index 56720fb2fa2c421bc809958143ff51075fc900fa..6ec18af027710f4cb82d628c344d2f00e922cd15 100644 (file)
--- a/handler.c
+++ b/handler.c
@@ -100,7 +100,7 @@ handle_command(struct json_script_ctx *ctx, const char *name,
                void (*func)(struct json_script_ctx *ctx, struct blob_attr *data);
        } cmds[] = {
                { "redirect", handle_redirect },
-               { "set_uri", handle_set_uri }
+               { "rewrite", handle_set_uri }
        };
        int i;