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());
}

@ -1 +1 @@
Subproject commit 1acbcaf03a279df64c155a0c08ecb73e6e3fe804
Subproject commit 359c26b0bf8e728bf857dacacff70627c6ae5738