Update uWS
This commit is contained in:
parent
ce62261986
commit
9f4bf9b8c5
@ -153,17 +153,17 @@ struct HttpResponseWrapper {
|
|||||||
totalSize = args[1]->Uint32Value();
|
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 */
|
/* Invalidate this object if we responded completely */
|
||||||
if (res->hasResponded()) {
|
if (hasResponded) {
|
||||||
invalidateResObject(args);
|
invalidateResObject(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This is a quick fix, it will need updating in µWS later on */
|
/* This is a quick fix, it will need updating in µWS later on */
|
||||||
Local<Array> array = Array::New(isolate, 2);
|
Local<Array> array = Array::New(isolate, 2);
|
||||||
array->Set(0, Boolean::New(isolate, ok));
|
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);
|
args.GetReturnValue().Set(array);
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 6fe717f46a0f4188e1fc929776d1b86791ec7cb0
|
Subproject commit 127d3d6a147a339cc077d967328c22fce45645f5
|
Loading…
Reference in New Issue
Block a user