mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Fix header check mismatch
This commit is contained in:
parent
5a6e891099
commit
dd4ffa41af
1 changed files with 1 additions and 1 deletions
|
|
@ -815,7 +815,7 @@ App::setResource('devKey', function (Request $request, Document $project, array
|
|||
|
||||
// add sdk to key
|
||||
$sdkValidator = new WhiteList($servers, true);
|
||||
$sdk = $request->getHeader('x-sdk-name', 'UNKNOWN');
|
||||
$sdk = \strtolower($request->getHeader('x-sdk-name', 'UNKNOWN'));
|
||||
|
||||
if ($sdk !== 'UNKNOWN' && $sdkValidator->isValid($sdk)) {
|
||||
$sdks = $key->getAttribute('sdks', []);
|
||||
|
|
|
|||
Loading…
Reference in a new issue