Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Fixed RequestFactory try to pass null into int
Browse files Browse the repository at this point in the history
  • Loading branch information
Radovan Kepák committed Apr 7, 2022
1 parent 4d1674d commit 7dead77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/DI/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@

namespace Mallgroup\RoadRunner\DI;

use Mallgroup\RoadRunner\PsrChain;
use Nette;
use Nette\Http\Session;
use Tracy;
use Nette\Schema\Expect;
use Nette\Schema\Schema;
use Nyholm\Psr7\Factory\Psr17Factory;
use Mallgroup\RoadRunner\Http\IRequest;
use Mallgroup\RoadRunner\Http\IResponse;
use Mallgroup\RoadRunner\Http\RequestFactory;
use Mallgroup\RoadRunner\Http\Request;
use Mallgroup\RoadRunner\Http\Response;
Expand Down
7 changes: 5 additions & 2 deletions src/Http/RequestFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,13 @@ private function createUrl(ServerRequestInterface $request): Url

$url->setScheme($uri->getScheme());
$url->setHost($uri->getHost());
$url->setPort($uri->getPort());
$url->setPath($uri->getPath());
$url->setQuery($uri->getQuery());

if ($uri->getPort()) {
$url->setPort($uri->getPort());
}

$url->setQuery($uri->getQuery());
$this->setAuthorization($url, $uri->getUserInfo());

return $url;
Expand Down

0 comments on commit 7dead77

Please sign in to comment.