Skip to content

Commit

Permalink
Merge pull request #25 from kaivanriz/patch-1
Browse files Browse the repository at this point in the history
Update HeimdallRequest.php for Codeigniter 4.5
  • Loading branch information
ezralazuardy authored Sep 25, 2024
2 parents 95c2c24 + 08b0637 commit 9c8b4d9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Http/HeimdallRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function __construct(IncomingRequest $request)
{
$username = null;
$password = null;
$uri = $request->uri->showPassword(true);
$uri = $request->getUri()->showPassword(true);
if (strpos($uri->getUserInfo(), ':')) {
$userInfo = explode(':', $uri->getUserInfo());
$username = $userInfo[0];
Expand All @@ -33,12 +33,12 @@ function __construct(IncomingRequest $request)
parent::__construct(
$request->getMethod(),
new Uri(
$request->uri->getScheme(),
$request->uri->getHost(),
$request->uri->getPort(),
$request->uri->getPath(),
$request->uri->getQuery(),
$request->uri->getFragment(),
$request->getUri()->getScheme(),
$request->getUri()->getHost(),
$request->getUri()->getPort(),
$request->getUri()->getPath(),
$request->getUri()->getQuery(),
$request->getUri()->getFragment(),
$username,
$password
),
Expand All @@ -49,4 +49,4 @@ function __construct(IncomingRequest $request)
$request->getFiles()
);
}
}
}

0 comments on commit 9c8b4d9

Please sign in to comment.