Update uWS, connectionClose

This commit is contained in:
Alex Hultman 2021-01-25 13:33:52 +01:00
parent 5a245b528f
commit 6008a08b38
2 changed files with 8 additions and 2 deletions

View file

@ -213,8 +213,14 @@ struct HttpResponseWrapper {
if (data.isInvalid(args)) {
return;
}
bool closeConnection = false;
if (args.Length() >= 2) {
closeConnection = BooleanValue(args.GetIsolate(), args[1]);
}
invalidateResObject(args);
res->end(data.getString());
res->end(data.getString(), closeConnection);
args.GetReturnValue().Set(args.Holder());
}