mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Fixup HTTP headers for httpClient requests
This commit is contained in:
parent
63d6c3f40f
commit
7662d1ef1c
3 changed files with 3 additions and 3 deletions
|
@ -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::httpRequest()->post($dw_blog, $xml, ['Content-Type' => 'text/xml'])->getBody();
|
||||
}
|
||||
|
||||
Logger::log('posted to dreamwidth: ' . ($x) ? $x : '', Logger::DEBUG);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue