Rename DI::httpRequest() into DI::httpClient()
This commit is contained in:
@@ -224,7 +224,7 @@ EOT;
|
||||
Logger::log('dwpost: data: ' . $xml, Logger::DATA);
|
||||
|
||||
if ($dw_blog !== 'test') {
|
||||
$x = DI::httpRequest()->post($dw_blog, $xml, ['Content-Type' => 'text/xml'])->getBody();
|
||||
$x = DI::httpClient()->post($dw_blog, $xml, ['Content-Type' => 'text/xml'])->getBody();
|
||||
}
|
||||
|
||||
Logger::log('posted to dreamwidth: ' . ($x) ? $x : '', Logger::DEBUG);
|
||||
|
||||
Reference in New Issue
Block a user