Преглед изворни кода

HPCC-22402 ESP doesn't handle bad uri gracefully

- Call onGetNotFound method to send back "Page Not Found" to the client
  when the service or method requested doesn't exist.

Signed-off-by: mayx <yanrui.ma@lexisnexisrisk.com>
mayx пре 6 година
родитељ
комит
22ac2749a6
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      esp/bindings/http/platform/httpbinding.cpp

+ 1 - 1
esp/bindings/http/platform/httpbinding.cpp

@@ -1670,7 +1670,7 @@ int EspHttpBinding::getWsdlOrXsd(IEspContext &context, CHttpRequest* request, CH
 
         if (!qualifyServiceName(context, service, method, serviceQName, &methodQName))
         {
-            response->setStatus(HTTP_STATUS_NOT_FOUND);
+            return onGetNotFound(context, request,  response, service);
         }
         else
         {