Remove accept parameter for head/post again

This commit is contained in:
Philipp 2022-04-03 19:33:08 +02:00
parent 82f8c14633
commit 707e03635b
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
5 changed files with 6 additions and 10 deletions

View file

@ -17,7 +17,6 @@ use Friendica\DI;
use Friendica\Model\Post;
use Friendica\Model\Tag;
use Friendica\Model\User;
use Friendica\Network\HTTPClient\Client\HttpClientAccept;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\XML;
@ -193,7 +192,7 @@ EOT;
Logger::debug('dwpost: data: ' . $xml);
if ($dw_blog !== 'test') {
$x = DI::httpClient()->post($dw_blog, $xml, HttpClientAccept::DEFAULT, ['Content-Type' => 'text/xml'])->getBody();
$x = DI::httpClient()->post($dw_blog, $xml, ['Content-Type' => 'text/xml'])->getBody();
}
Logger::info('posted to dreamwidth: ' . ($x) ? $x : '');