Fix #1382 - use sendto for UDP send

This commit is contained in:
Sergey Lyubka committed 2021-10-22 08:56:45 +01:00
1 parent c62c8ea4dd
commit 7c5e67b272
5 files changed
+48 -36

No files matched your search

+1 -1
View File
@@ -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) {