s/uri/url, to conform to nodejs HTTP API

PUBLISHED_FROM=32ba0c859ad9df3cf7dc3af8e379e49543e77843
This commit is contained in:
Sergey Lyubka authored and Sergey Lyubka committed 2015-11-18 07:44:19 +00:00
1 parent d60c99b01c
commit 47d52896a1
1 file changed
+1
+1
View File
@@ -6000,6 +6000,7 @@ void mg_send_http_file(struct mg_connection *nc, char *path,
uint32_t remote_ip = ntohl(*(uint32_t *) &nc->sa.sin.sin_addr);
cs_stat_t st;
DBG(("serving [%s]", path));
stat_result = mg_stat(path, &st);
is_directory = !stat_result && S_ISDIR(st.st_mode);