User tests: Successful: Unsuccessful:
@LadySolveig found and fixed an issue (thanks for that) with the HTTP-classes header handling, as they could be arrays.
As the underlying library laminas-diactotos gives us an array from the getHeaders function in the request, we also need to support this.
/**
* {@inheritdoc}
*/
public function getHeaders(): array
{
$headers = $this->headers;
if (
! $this->hasHeader('host')
&& $this->uri->getHost()
) {
$headers['Host'] = [$this->getHostFromUri()];
}
return $headers;
}Same way at it is done and fixed in the Joomla! http Framework Package.
Hard to test, it's streamlining the code, so I guess all the requests using the HTTP-class, like the stats collection, should still work.
@Hackwar as you implemented this in the framework, could you have a look and see if it's correct? Thanks!
| Status | New | ⇒ | Pending |
| Category | ⇒ | Libraries |
| Status | Pending | ⇒ | Ready to Commit |
| Labels |
Added:
bug
PR-5.3-dev
|
||
| Labels |
Added:
RTC
|
||
| Status | Ready to Commit | ⇒ | Fixed in Code Base |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-09-20 14:59:01 |
| Closed_By | ⇒ | LadySolveig |
Thanks to all involved 💚
RTC after 2 successful review.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46078.