diff --git a/net/http/src/THttpServer.cxx b/net/http/src/THttpServer.cxx index 8f1f4ede4e28f..24adc3b7a35e2 100644 --- a/net/http/src/THttpServer.cxx +++ b/net/http/src/THttpServer.cxx @@ -1224,8 +1224,10 @@ Bool_t THttpServer::ExecuteWS(std::shared_ptr &arg, Bool_t externa return kTRUE; } - if (!handler) + if (!handler) { + arg->Set404(); return kFALSE; + } Bool_t process = kFALSE;