diff options
Diffstat (limited to 'php-src/tests/http/header.php')
-rw-r--r-- | php-src/tests/http/header.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/php-src/tests/http/header.php b/php-src/tests/http/header.php index 9bb15ccd..e5b295b6 100644 --- a/php-src/tests/http/header.php +++ b/php-src/tests/http/header.php @@ -1,9 +1,11 @@ <?php -use \Psr\Http\Message\ServerRequestInterface; -use \Psr\Http\Message\ResponseInterface; +use Psr\Http\Message\ResponseInterface; +use Psr\Http\Message\ServerRequestInterface; function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface { + $resp->getBody()->write(strtoupper($req->getHeaderLine('input'))); + return $resp->withAddedHeader("Header", $req->getQueryParams()['hello']); }
\ No newline at end of file |