1
0
Fork 0

Remove accept parameter for head/post again

This commit is contained in:
Philipp Holzer 2022-04-03 19:33:09 +02:00
commit 04866195b4
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
12 changed files with 54 additions and 57 deletions

View file

@ -3018,7 +3018,7 @@ class Diaspora
if (!intval(DI::config()->get("system", "diaspora_test"))) {
$content_type = (($public_batch) ? "application/magic-envelope+xml" : "application/json");
$postResult = DI::httpClient()->post($dest_url . "/", $envelope, HttpClientAccept::DEFAULT, ['Content-Type' => $content_type]);
$postResult = DI::httpClient()->post($dest_url . "/", $envelope, ['Content-Type' => $content_type]);
$return_code = $postResult->getReturnCode();
} else {
Logger::notice("test_mode");