فهرست منبع

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
         {