diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-05-29 23:44:51 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-05-29 23:47:36 +0200 |
commit | a4487d8a46d3e4400bf73ce817fa1a34cde31a6f (patch) | |
tree | 8c1c7e7001b9b53037b66d7cf8aef7d6bed1219b /src/afb-hswitch.c | |
parent | 26bca5f8a8c6f9403a84945a5cd914b6da948efd (diff) |
redirect with the query
Change-Id: I36c6c6cbc62217ff0d79e004d9b40aa77e3fa0f4
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-hswitch.c')
-rw-r--r-- | src/afb-hswitch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-hswitch.c b/src/afb-hswitch.c index 417b773e..fea30c59 100644 --- a/src/afb-hswitch.c +++ b/src/afb-hswitch.c @@ -73,7 +73,7 @@ int afb_hswitch_one_page_api_redirect(struct afb_hreq *hreq, void *data) url[plen++] = '#'; url[plen++] = '!'; memcpy(&url[plen], &hreq->tail[1], hreq->lentail); - return afb_hreq_redirect_to(hreq, url); + return afb_hreq_redirect_to(hreq, url, 1); } int afb_hswitch_websocket_switch(struct afb_hreq *hreq, void *data) |