mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-23 11:44:53 +00:00
s/uri/url, to conform to nodejs HTTP API
PUBLISHED_FROM=32ba0c859ad9df3cf7dc3af8e379e49543e77843
This commit is contained in:
1 parent
d60c99b01c
commit
47d52896a1
1 file changed
+1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user