Skip to content

Commit 456655a

Browse files
committed
Dont strtoupper allowed headers
1 parent 30d6058 commit 456655a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/CorsService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private function configureAllowedHeaders(Response $response, Request $request)
181181
{
182182
if ($this->options['allowedHeaders'] === true) {
183183
if ($this->options['supportsCredentials']) {
184-
$allowHeaders = strtoupper($request->headers->get('Access-Control-Request-Headers'));
184+
$allowHeaders = $request->headers->get('Access-Control-Request-Headers');
185185
$this->varyHeader($response, 'Access-Control-Request-Headers');
186186
} else {
187187
$allowHeaders = '*';

tests/CorsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function it_returns_allow_headers_header_on_allow_all_headers_request_cre
104104
$response = $app->handle($request);
105105

106106
$this->assertEquals(204, $response->getStatusCode());
107-
$this->assertEquals('FOO, BAR', $response->headers->get('Access-Control-Allow-Headers'));
107+
$this->assertEquals('Foo, BAR', $response->headers->get('Access-Control-Allow-Headers'));
108108
$this->assertEquals('Access-Control-Request-Headers', $response->headers->get('Vary'));
109109
}
110110

0 commit comments

Comments
 (0)