diff --git a/src/HttpResponseWrapper.h b/src/HttpResponseWrapper.h index d2d3888..3cc3b5d 100644 --- a/src/HttpResponseWrapper.h +++ b/src/HttpResponseWrapper.h @@ -153,17 +153,17 @@ struct HttpResponseWrapper { totalSize = args[1]->Uint32Value(); } - bool ok = res->tryEnd(data.getString(), totalSize); + auto [ok, hasResponded] = res->tryEnd(data.getString(), totalSize); /* Invalidate this object if we responded completely */ - if (res->hasResponded()) { + if (hasResponded) { invalidateResObject(args); } /* This is a quick fix, it will need updating in µWS later on */ Local array = Array::New(isolate, 2); array->Set(0, Boolean::New(isolate, ok)); - array->Set(1, Boolean::New(isolate, res->hasResponded())); + array->Set(1, Boolean::New(isolate, hasResponded)); args.GetReturnValue().Set(array); } diff --git a/uWebSockets b/uWebSockets index 6fe717f..127d3d6 160000 --- a/uWebSockets +++ b/uWebSockets @@ -1 +1 @@ -Subproject commit 6fe717f46a0f4188e1fc929776d1b86791ec7cb0 +Subproject commit 127d3d6a147a339cc077d967328c22fce45645f5