mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-09 21:51:45 +00:00
tio: fix bug in body receive
This commit is contained in:
parent
0da3b2b273
commit
97875c7d2f
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ namespace ams::tio {
|
|||
|
||||
/* Receive the request body, if necessary. */
|
||||
if (request->header.body_size > 0) {
|
||||
if (htcs::Recv(fd, request->body, request->header.body_size, htcs::HTCS_MSG_WAITALL) != sizeof(request->header.body_size)) {
|
||||
if (htcs::Recv(fd, request->body, request->header.body_size, htcs::HTCS_MSG_WAITALL) != request->header.body_size) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue