mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-20 11:19:56 +00:00
Fix #1382 - use sendto for UDP send
This commit is contained in:
1 parent
c62c8ea4dd
commit
7c5e67b272
5 files changed
+48
-36
No files matched your search
+1
-1
@@ -725,7 +725,7 @@ static int uri_to_path2(struct mg_connection *c, struct mg_http_message *hm,
|
||||
path[path_size - 1] = '\0'; // Double-check
|
||||
remove_double_dots(path);
|
||||
n = strlen(path);
|
||||
LOG(LL_DEBUG, ("--> %s", path));
|
||||
LOG(LL_VERBOSE_DEBUG, ("%lu %s", c->id, path));
|
||||
while (n > 0 && path[n - 1] == '/') path[--n] = 0; // Trim trailing slashes
|
||||
flags = fs->stat(path, NULL, NULL); // Does it exist?
|
||||
if (flags == 0) {
|
||||
|
||||
Reference in new issue
Block a user