Skip to content

Commit 4130729

Browse files
linevdpiparo
authored andcommitted
[http] discard web socket connection without handler
If no any handler was found - http request associated with specified web socket can be directly discarded. Connection was established - but was not handled in the ROOT. (cherry picked from commit 5f57840)
1 parent ef51e3e commit 4130729

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

net/http/src/THttpServer.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1300,8 +1300,10 @@ Bool_t THttpServer::ExecuteWS(std::shared_ptr<THttpCallArg> &arg, Bool_t externa
13001300
return kTRUE;
13011301
}
13021302

1303-
if (!handler)
1303+
if (!handler) {
1304+
arg->Set404();
13041305
return kFALSE;
1306+
}
13051307

13061308
Bool_t process = kFALSE;
13071309

0 commit comments

Comments
 (0)