Fixup HTTP headers for httpClient requests

This commit is contained in:
Philipp
2021-08-24 14:17:42 +02:00
parent c7f54d83ce
commit 2356221aba
12 changed files with 36 additions and 33 deletions

View File

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