Change mg_http_upload API

This commit is contained in:
Sergey Lyubka committed 2022-06-30 21:54:50 +01:00
1 parent 56412193e7
commit 99f0688377
10 files changed
+135 -56

No files matched your search

+2 -2
View File
@@ -223,7 +223,7 @@ int64_t mg_to64(struct mg_str str) {
}
char *mg_remove_double_dots(char *s) {
char *p = s;
char *saved = s, *p = s;
while (*s != '\0') {
*p++ = *s++;
if (s[-1] == '/' || s[-1] == '\\') {
@@ -240,5 +240,5 @@ char *mg_remove_double_dots(char *s) {
}
}
*p = '\0';
return s;
return saved;
}