1
0
Fork 0
mirror of synced 2024-06-01 18:39:57 +12:00
This commit is contained in:
Luke B. Silver 2024-05-16 11:16:27 +01:00 committed by GitHub
commit b3f9e3e00b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -521,6 +521,9 @@ App::init()
if (version_compare($responseFormat, '1.5.0', '<')) {
$response->addFilter(new ResponseV17());
}
if (version_compare($responseFormat, APP_VERSION_FORMAT, '>')) {
$response->addHeader('X-Appwrite-Warning', 'Request made with SDK for Appwrite version ' . $responseFormat . '. Response format is meant for Appwrite version ' . APP_VERSION_FORMAT . '. Please downgrade your SDK to match the Appwrite version: https://appwrite.io/docs/sdks');
}
}
/*

View file

@ -114,6 +114,7 @@ const APP_USER_ACCCESS = 24 * 60 * 60; // 24 hours
const APP_CACHE_UPDATE = 24 * 60 * 60; // 24 hours
const APP_CACHE_BUSTER = 406;
const APP_VERSION_STABLE = '1.5.5';
const APP_VERSION_FORMAT = '1.5.0'; // Response format version, typically the last minor version
const APP_DATABASE_ATTRIBUTE_EMAIL = 'email';
const APP_DATABASE_ATTRIBUTE_ENUM = 'enum';
const APP_DATABASE_ATTRIBUTE_IP = 'ip';