diff --git a/src/MetaTech/Ws/Client.php b/src/MetaTech/Ws/Client.php index c0a1cd6..3094b8a 100644 --- a/src/MetaTech/Ws/Client.php +++ b/src/MetaTech/Ws/Client.php @@ -347,10 +347,14 @@ class Client case self::VERBOOSE : array_unshift($tags, Formatter::LF); - $tags[] = var_export(compact('status')+['response' => $respcontent], true); + $tags[] = var_export(compact('status', 'authresponse')+['response' => $respcontent], true); $this->formatter->writeTags($tags); break; } + if (!$authresponse) { + $response->done = false; + $response->msg = 'server response not authenticated !'; + } return compact('date', 'uri', 'response', 'status', 'exectime', 'authresponse'); }