Fix #1329 - send MG_EV_WS_OPEN for server connections

This commit is contained in:
Sergey Lyubka committed 2021-08-04 11:38:32 +01:00
1 parent 9b18a6350a
commit c2c6ff11ed
5 files changed
+46 -23

No files matched your search

+1 -1
View File
@@ -740,7 +740,7 @@ void mg_http_serve_dir(struct mg_connection *c, struct mg_http_message *hm,
int flags = uri_to_path(c, hm, opts, root, sizeof(root), path, sizeof(path));
if (flags == 0) return;
LOG(LL_DEBUG, ("root [%s], path [%s] %d", root, path, flags));
// LOG(LL_DEBUG, ("root [%s], path [%s] %d", root, path, flags));
if (flags & MG_FS_DIR) {
listdir(c, hm, opts, path);
} else if (opts->ssi_pattern != NULL &&