Merge pull request #405 from shuax/master

typo fix
This commit is contained in:
joyqi 2015-11-14 14:31:29 +08:00
commit 6f6cf15674

View File

@ -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;
}
}