CRM_Utils_System::sendResponse() - Provide copy of $response for testers
authorTim Otten <totten@civicrm.org>
Tue, 9 Jan 2024 04:18:38 +0000 (20:18 -0800)
committerTim Otten <totten@civicrm.org>
Fri, 12 Jan 2024 21:46:37 +0000 (13:46 -0800)
CRM/Utils/System/Base.php

index 8559f220b204ab7cdf1c72bcf3d1f3dcf4f9fc8e..a5cbcaf780d2317322203d0146a31794feb559de 100644 (file)
@@ -977,7 +977,7 @@ abstract class CRM_Utils_System_Base {
       CRM_Utils_System::setHttpHeader($name, implode(', ', (array) $values));
     }
     echo $response->getBody();
-    CRM_Utils_System::civiExit();
+    CRM_Utils_System::civiExit(0, ['response' => $response]);
   }
 
   /**