$return->success = true;
} foreach ($headers as $header) { list
($key,
$value) =
explode(':',
$header, 2
);
$value =
trim($value);
preg_replace('#(\s+)#i', ' ',
$value);
$return->headers
[$key] =
$value;
} if (isset($return->headers
['transfer-encoding'
])) { $return->body = self::
decode_chunked($return->body
);
unset($return->headers
['transfer-encoding'
]);
} if (isset($return->headers
['content-encoding'
])) { $return->body = self::
decompress($return->body
);
} //fsockopen and cURL compatibility
if (isset($return->headers
['connection'
])) { unset($return->headers
['connection'
]);
}