summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2015-12-09 17:32:17 +0100
committerFulup Ar Foll <fulup@iot.bzh>2015-12-09 17:32:17 +0100
commitaccb3215b180f8e386f896ba0368b7188eaa190e (patch)
tree742543c686889e0bd3206c2c48a9b1eb3f9fdc36 /src
parent8e61a22b3d7219c59f3925ac8e173b9b74fbcf30 (diff)
Doc
Diffstat (limited to 'src')
-rw-r--r--src/http-svc.c6
-rw-r--r--src/main.c1
2 files changed, 1 insertions, 6 deletions
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
diff --git a/src/main.c b/src/main.c
index 6d8ffdef..040fc95b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -216,7 +216,6 @@ static void closeSession (AFB_session *session) {
}
-
/*----------------------------------------------------------
| listenLoop
| Main listening HTTP loop