fix invalid server response
This commit is contained in:
parent
fb15b5652a
commit
94f5dcd4e5
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user