1
0
mirror of https://github.com/typecho/typecho.git synced 2025-03-20 09:59:41 +01:00
This commit is contained in:
舒俊杰 2015-10-09 21:17:47 +08:00
parent fe76665687
commit 6ad6511762

@ -144,11 +144,11 @@ class Typecho_Http_Client_Adapter_Socket extends Typecho_Http_Client_Adapter
{
/** 支持chunked编码 */
if ('chunked' == $this->getResponseHeader('Transfer-Encoding')) {
$parts = explode("\r\n", $this->reponseBody, 2);
$parts = explode("\r\n", $this->responseBody, 2);
$counter = hexdec($parts[0]);
$this->reponseBody = substr($parts[1], 0, $counter);
$this->responseBody = substr($parts[1], 0, $counter);
}
return $this->reponseBody;
return $this->responseBody;
}
}