mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-19 04:43:41 +00:00
Merge pull request #1160 from nupplaphil/task/httprequest_optimiziations
[various] Fixup HTTP headers for httpClient requests
This commit is contained in:
commit
db998b0bf1
3 changed files with 3 additions and 3 deletions
|
@ -224,7 +224,7 @@ EOT;
|
||||||
Logger::log('dwpost: data: ' . $xml, Logger::DATA);
|
Logger::log('dwpost: data: ' . $xml, Logger::DATA);
|
||||||
|
|
||||||
if ($dw_blog !== 'test') {
|
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);
|
Logger::log('posted to dreamwidth: ' . ($x) ? $x : '', Logger::DEBUG);
|
||||||
|
|
|
@ -219,7 +219,7 @@ EOT;
|
||||||
Logger::log('ijpost: data: ' . $xml, Logger::DATA);
|
Logger::log('ijpost: data: ' . $xml, Logger::DATA);
|
||||||
|
|
||||||
if ($ij_blog !== 'test') {
|
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);
|
Logger::log('posted to insanejournal: ' . $x ? $x : '', Logger::DEBUG);
|
||||||
}
|
}
|
||||||
|
|
|
@ -234,7 +234,7 @@ EOT;
|
||||||
Logger::log('ljpost: data: ' . $xml, Logger::DATA);
|
Logger::log('ljpost: data: ' . $xml, Logger::DATA);
|
||||||
|
|
||||||
if ($lj_blog !== 'test') {
|
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);
|
Logger::log('posted to livejournal: ' . ($x) ? $x : '', Logger::DEBUG);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue