Merge e73b4b8573
into 8267ed41fb
This commit is contained in:
commit
b3f9e3e00b
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue