From 06382af9092babedbf56aa1c00b3bd7cb0b86cda Mon Sep 17 00:00:00 2001 From: José Bollo Date: Tue, 17 May 2016 15:12:11 +0200 Subject: provides developper files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I0e41a0db778c69b5f5ce71115d495b2bb8b4cffe Signed-off-by: José Bollo --- src/afb-hreq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/afb-hreq.c') 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 #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); -- cgit 1.2.3-korg