X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fhttp-svc.c;h=e8f2c0e508854128f2a489fbcd228036a334950c;hb=accb3215b180f8e386f896ba0368b7188eaa190e;hp=034753f461eeb962b34b76fbd206a4594029f310;hpb=8e61a22b3d7219c59f3925ac8e173b9b74fbcf30;p=src%2Fapp-framework-binder.git diff --git a/src/http-svc.c b/src/http-svc.c index 034753f4..e8f2c0e5 100644 --- a/src/http-svc.c +++ b/src/http-svc.c @@ -99,11 +99,7 @@ STATIC int servFile (struct MHD_Connection *connection, AFB_session *session, co fprintf(stderr, "Fail to stat file: [%s] error:%s\n", staticfile->path, strerror(errno)); goto abortRequest; } - - - - - + // if url is a directory let's add index.html and redirect client if (S_ISDIR (sbuf.st_mode)) { close (staticfile->fd); // close directory check for Index