mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Thttpd Fix: wrong calc offset
This commit is contained in:
parent
f4d21b0360
commit
0fc0cb2888
1 changed files with 1 additions and 1 deletions
|
|
@ -473,7 +473,7 @@ static void handle_send(struct connect_s *conn, struct timeval *tv)
|
|||
|
||||
/* And update how much of the file we wrote */
|
||||
|
||||
conn->offset += nwritten;
|
||||
conn->offset += nread;
|
||||
conn->hc->bytes_sent += nwritten;
|
||||
ninfo("Wrote %d bytes\n", nwritten);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue