debug requests before sending

This commit is contained in:
Saw-jan
2023-01-06 15:21:22 +05:45
parent 613d41477b
commit 669f93b239

View File

@@ -144,6 +144,10 @@ class HttpRequestHelper {
$debugRequests = false;
}
if ($debugRequests) {
self::debugRequest($request, $user, $password);
}
// The exceptions that might happen here include:
// ConnectException - in that case there is no response. Don't catch the exception.
// RequestException - if there is something in the response then pass it back.
@@ -160,10 +164,6 @@ class HttpRequestHelper {
}
}
if ($debugRequests) {
self::debugRequest($request, $user, $password);
}
return $response;
}