protected function setRequestProperties(
        ServerRequestInterface $baseRequest,
        BrowserKitRequest $request,
        Stream $stream,
        UriInterface $uri,
        array $queryParams
    ) {
        return $baseRequest
            ->withProtocolVersion('1.1')
            ->withBody($stream)
            ->withMethod($request->getMethod())
            ->withRequestTarget((string)($uri->withScheme('')->withHost('')->withPort('')->withUserInfo('')))
            ->withCookieParams($request->getCookies())
            ->withUri($uri)
            ->withQueryParams($queryParams)
            ->withParsedBody($request->getMethod() !== 'GET' && !empty($request->getParameters())
                ? $request->getParameters() : null)
            ->withUploadedFiles($this->convertUploadedFiles($request->getFiles()));
    }