aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Bollo <jose.bollo@iot.bzh>2019-12-02 20:40:50 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2019-12-03 18:51:51 +0100
commitc79b6bac7d0f6ad6139326d932d119484be53cc0 (patch)
tree973dcb93d9e768e247c8ebf2d875279f0632bcfb
parent93483c5f0d3434e45a8689a069b3b8286f4780d4 (diff)
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 <jose.bollo@iot.bzh> Change-Id: I339699bbe66ed3df74ed4ac92344646339e5f2ad
-rw-r--r--src/main-afb-daemon.c2
1 files changed, 1 insertions, 1 deletions
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)