Update uWS, connectionClose
This commit is contained in:
parent
5a245b528f
commit
6008a08b38
@ -213,8 +213,14 @@ struct HttpResponseWrapper {
|
|||||||
if (data.isInvalid(args)) {
|
if (data.isInvalid(args)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool closeConnection = false;
|
||||||
|
if (args.Length() >= 2) {
|
||||||
|
closeConnection = BooleanValue(args.GetIsolate(), args[1]);
|
||||||
|
}
|
||||||
|
|
||||||
invalidateResObject(args);
|
invalidateResObject(args);
|
||||||
res->end(data.getString());
|
res->end(data.getString(), closeConnection);
|
||||||
|
|
||||||
args.GetReturnValue().Set(args.Holder());
|
args.GetReturnValue().Set(args.Holder());
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 1acbcaf03a279df64c155a0c08ecb73e6e3fe804
|
Subproject commit 359c26b0bf8e728bf857dacacff70627c6ae5738
|
Loading…
Reference in New Issue
Block a user