Merge branch '1.5.x' into prepare-1.5.7
This commit is contained in:
commit
3a63ee834a
1 changed files with 3 additions and 0 deletions
|
@ -554,6 +554,9 @@ App::init()
|
||||||
if (version_compare($responseFormat, '1.5.0', '<')) {
|
if (version_compare($responseFormat, '1.5.0', '<')) {
|
||||||
$response->addFilter(new ResponseV17());
|
$response->addFilter(new ResponseV17());
|
||||||
}
|
}
|
||||||
|
if (version_compare($responseFormat, APP_VERSION_STABLE, '>')) {
|
||||||
|
$response->addHeader('X-Appwrite-Warning', "The current SDK is built for Appwrite " . $responseFormat . ". However, the current Appwrite server version is ". APP_VERSION_STABLE . ". Please downgrade your SDK to match the Appwrite version: https://appwrite.io/docs/sdks");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue