aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-hreq.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-05-17 15:12:11 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-05-17 15:29:46 +0200
commit06382af9092babedbf56aa1c00b3bd7cb0b86cda (patch)
tree294a43ae20190d90f6871545408a1be0902e7cc4 /src/afb-hreq.c
parent28a3f9d5c0b92c7dd3a3844e73b83aa350d5e165 (diff)
provides developper files
Change-Id: I0e41a0db778c69b5f5ce71115d495b2bb8b4cffe Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-hreq.c')
-rw-r--r--src/afb-hreq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/afb-hreq.c b/src/afb-hreq.c
index 0f2f0ffb..a1c750b4 100644
--- a/src/afb-hreq.c
+++ b/src/afb-hreq.c
@@ -33,7 +33,7 @@
#endif
#include "afb-method.h"
-#include "afb-req-itf.h"
+#include <afb/afb-req-itf.h>
#include "afb-msg-json.h"
#include "afb-context.h"
#include "afb-hreq.h"
@@ -471,6 +471,7 @@ int afb_hreq_reply_file(struct afb_hreq *hreq, int dirfd, const char *filename)
int afb_hreq_redirect_to(struct afb_hreq *hreq, const char *url)
{
+ /* TODO: append the query part! */
afb_hreq_reply_static(hreq, MHD_HTTP_MOVED_PERMANENTLY, 0, NULL,
MHD_HTTP_HEADER_LOCATION, url, NULL);
DEBUG("redirect from [%s] to [%s]", hreq->url, url);