Pass "last" bool to res->onData

This commit is contained in:
Alex Hultman
2019-01-07 03:05:19 +01:00
parent 4fde553d03
commit 47467ab1e5
4 changed files with 12 additions and 13 deletions
+2 -2
View File
@@ -168,9 +168,9 @@ private:
/* Continue parsing */
return s;
}, [httpResponseData](void *user, std::string_view data) -> void * {
}, [httpResponseData](void *user, std::string_view data, bool fin) -> void * {
if (httpResponseData->inStream) {
httpResponseData->inStream(data);
httpResponseData->inStream(data, fin);
/* Was the socket closed? */
if (us_socket_is_closed((struct us_socket *) user)) {