mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 06:25:51 +03:00
20f4166cc5
refs #6949 - Adds a new VersionMismatchError with status 400 (bad request) - Adds middleware that checks the X-Ghost-Version header if it is provided - If it is not provided, the middleware does nothing - If it is provided, and the versions match, the middleware does nothing - If it is provided, and the versions don't match, the middleware returns a VersionMismatchError - Includes both unit and a functional test to prove the middleware works alone and as part of the whole system |
||
---|---|---|
.. | ||
api | ||
auth-strategies_spec.js | ||
authentication_spec.js | ||
cache-control_spec.js | ||
check-ssl_spec.js | ||
cors_spec.js | ||
decide-is-admin_spec.js | ||
oauth_spec.js | ||
redirect-to-setup_spec.js | ||
serve-shared-file_spec.js | ||
spam-prevention_spec.js | ||
static-theme_spec.js | ||
theme-handler_spec.js | ||
uncapitalise_spec.js |