fix invalid server response

This commit is contained in:
a-sansara 2017-03-21 03:41:54 +01:00
parent fb15b5652a
commit 94f5dcd4e5

View File

@ -347,10 +347,14 @@ class Client
case self::VERBOOSE : case self::VERBOOSE :
array_unshift($tags, Formatter::LF); 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); $this->formatter->writeTags($tags);
break; break;
} }
if (!$authresponse) {
$response->done = false;
$response->msg = 'server response not authenticated !';
}
return compact('date', 'uri', 'response', 'status', 'exectime', 'authresponse'); return compact('date', 'uri', 'response', 'status', 'exectime', 'authresponse');
} }