Ver código fonte

mg_store_body always returns 0 on success #421

sgmesservey 8 anos atrás
pai
commit
14aa55a692
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      src/civetweb.c

+ 1 - 0
src/civetweb.c

@@ -8050,6 +8050,7 @@ mg_store_body(struct mg_connection *conn, const char *path)
 			remove_bad_file(conn, path);
 			remove_bad_file(conn, path);
 			return -13;
 			return -13;
 		}
 		}
+		len += ret;
 		ret = mg_read(conn, buf, sizeof(buf));
 		ret = mg_read(conn, buf, sizeof(buf));
 	}
 	}