From c79b6bac7d0f6ad6139326d932d119484be53cc0 Mon Sep 17 00:00:00 2001 From: Jose Bollo Date: Mon, 2 Dec 2019 20:40:50 +0100 Subject: Relax constraint on aliases Without relaxing constraint, it is impossible to alias 2 directory contents for the same prefix. Relaxing it is needed for implementing ".well-known" interface. Bug-AGL: SPEC-2968 Signed-off-by: Jose Bollo Change-Id: I339699bbe66ed3df74ed4ac92344646339e5f2ad --- src/main-afb-daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main-afb-daemon.c b/src/main-afb-daemon.c index a8d99ff5..f9c4ed4e 100644 --- a/src/main-afb-daemon.c +++ b/src/main-afb-daemon.c @@ -298,7 +298,7 @@ static int init_alias(void *closure, const char *spec) *path++ = 0; INFO("Alias for url=%s to path=%s", spec, path); return afb_hsrv_add_alias(hsrv, spec, afb_common_rootdir_get_fd(), path, - 0, 0); + 0, 1); } static int init_http_server(struct afb_hsrv *hsrv) -- cgit 1.2.3-korg