diff options
author | 2015-12-09 17:32:17 +0100 | |
---|---|---|
committer | 2015-12-09 17:32:17 +0100 | |
commit | accb3215b180f8e386f896ba0368b7188eaa190e (patch) | |
tree | 742543c686889e0bd3206c2c48a9b1eb3f9fdc36 /src | |
parent | 8e61a22b3d7219c59f3925ac8e173b9b74fbcf30 (diff) |
Doc
Diffstat (limited to 'src')
-rw-r--r-- | src/http-svc.c | 6 | ||||
-rw-r--r-- | src/main.c | 1 |
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 @@ -216,7 +216,6 @@ static void closeSession (AFB_session *session) { } - /*---------------------------------------------------------- | listenLoop | Main listening HTTP loop |