mirror of
https://github.com/typecho/typecho.git
synced 2025-03-19 17:39:42 +01:00
commit
6f6cf15674
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user