Skip to content

Commit 860878a

Browse files
committed
[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 28418f5 commit 860878a

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
@@ -1295,8 +1295,10 @@ Bool_t THttpServer::ExecuteWS(std::shared_ptr<THttpCallArg> &arg, Bool_t externa
12951295
return kTRUE;
12961296
}
12971297

1298-
if (!handler)
1298+
if (!handler) {
1299+
arg->Set404();
12991300
return kFALSE;
1301+
}
13001302

13011303
Bool_t process = kFALSE;
13021304

0 commit comments

Comments
 (0)