Skip to content

Commit

Permalink
[joomla#43505] Fixed not reading the changelog URL
Browse files Browse the repository at this point in the history
Signed-off-by: Roland Dalmulder <[email protected]>
  • Loading branch information
roland-d committed Dec 16, 2024
1 parent c59e8ce commit 00a1a52
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/src/Changelog/Changelog.php
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ public function loadFromXml($url)
xml_set_element_handler($this->xmlParser, 'startElement', 'endElement');
xml_set_character_data_handler($this->xmlParser, 'characterData');

if (!xml_parse($this->xmlParser, $response->body)) {
if (!xml_parse($this->xmlParser, $response->getBody()->getContents())) {
Log::add(
\sprintf(
'XML error: %s at line %d',
Expand Down
1 change: 1 addition & 0 deletions libraries/src/Http/Transport/CurlTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ protected function getResponse($content, $info)

$streamInterface = new StreamResponse('php://memory', 'rw');
$streamInterface->write($body);
$streamInterface->rewind();

return new Response($streamInterface, $statusCode, $verifiedHeaders);
}
Expand Down
1 change: 1 addition & 0 deletions libraries/src/Http/Transport/SocketTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ protected function getResponse($content)

$streamInterface = new StreamResponse('php://memory', 'rw');
$streamInterface->write($body);
$streamInterface->rewind();

return new Response($streamInterface, $statusCode, $verifiedHeaders);
}
Expand Down
1 change: 1 addition & 0 deletions libraries/src/Http/Transport/StreamTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ protected function getResponse(array $headers, $body)

$streamInterface = new StreamResponse('php://memory', 'rw');
$streamInterface->write($body);
$streamInterface->rewind();

return new Response($streamInterface, $statusCode, $verifiedHeaders);
}
Expand Down

0 comments on commit 00a1a52

Please sign in to comment.