forked from mirrors/kore
Sometimes content_length wasn't properly updated.
This commit is contained in:
parent
0294212a3c
commit
f7b0b7c7ac
|
@ -716,6 +716,7 @@ http_header_recv(struct netbuf *nb)
|
||||||
http_body_recv);
|
http_body_recv);
|
||||||
c->rnb->extra = req;
|
c->rnb->extra = req;
|
||||||
http_request_sleep(req);
|
http_request_sleep(req);
|
||||||
|
req->content_length = bytes_left;
|
||||||
} else if (bytes_left == 0) {
|
} else if (bytes_left == 0) {
|
||||||
req->flags |= HTTP_REQUEST_COMPLETE;
|
req->flags |= HTTP_REQUEST_COMPLETE;
|
||||||
req->flags &= ~HTTP_REQUEST_EXPECT_BODY;
|
req->flags &= ~HTTP_REQUEST_EXPECT_BODY;
|
||||||
|
|
Loading…
Reference in New Issue