]> git.mxchange.org Git - friendica-addons.git/commitdiff
Fixup HTTP headers for httpClient requests
authorPhilipp <admin@philipp.info>
Wed, 25 Aug 2021 11:54:53 +0000 (13:54 +0200)
committerPhilipp <admin@philipp.info>
Wed, 25 Aug 2021 12:13:08 +0000 (14:13 +0200)
dwpost/dwpost.php
ijpost/ijpost.php
ljpost/ljpost.php

index 56e04f783c2be41e7925a903e093d0cddf58f1b6..72e600ee6eaa5c097eb80eee111411aa2790bfd5 100644 (file)
@@ -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);
index aad2a696945e854b4ddf1b118607eb6a2c3e0494..cbd7e9b0d33ccdb129feb8616d4ccb50dbeffb8f 100644 (file)
@@ -219,7 +219,7 @@ EOT;
                Logger::log('ijpost: data: ' . $xml, Logger::DATA);
 
                if ($ij_blog !== 'test') {
-                       $x = DI::httpRequest()->post($ij_blog, $xml, ["Content-Type: text/xml"])->getBody();
+                       $x = DI::httpRequest()->post($ij_blog, $xml, ['Content-Type' => 'text/xml'])->getBody();
                }
                Logger::log('posted to insanejournal: ' . $x ? $x : '', Logger::DEBUG);
        }
index 0cab2aa4792bb60f7a3d539c951b0be1f65c8aa2..896099d81d753c4ec7e55dc0cbcabd6021a440f7 100644 (file)
@@ -234,7 +234,7 @@ EOT;
                Logger::log('ljpost: data: ' . $xml, Logger::DATA);
 
                if ($lj_blog !== 'test') {
-                       $x = DI::httpRequest()->post($lj_blog, $xml, ["Content-Type: text/xml"])->getBody();
+                       $x = DI::httpRequest()->post($lj_blog, $xml, ['Content-Type' => 'text/xml'])->getBody();
                }
                Logger::log('posted to livejournal: ' . ($x) ? $x : '', Logger::DEBUG);
        }