Commit 15724c36 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-964 Expose Z-Push version via additional header to authenticated

users.

Released under the Affero GNU General Public License (AGPL) version 3.
parent d25536d7
...@@ -108,6 +108,10 @@ include_once(ZPUSH_CONFIG); ...@@ -108,6 +108,10 @@ include_once(ZPUSH_CONFIG);
// Do the actual request // Do the actual request
header(ZPush::GetServerHeader()); header(ZPush::GetServerHeader());
if (RequestProcessor::isUserAuthenticated()) {
header("X-Z-Push-Version: ". @constant('ZPUSH_VERSION'));
}
// announce the supported AS versions (if not already sent to device) // announce the supported AS versions (if not already sent to device)
if (ZPush::GetDeviceManager()->AnnounceASVersion()) { if (ZPush::GetDeviceManager()->AnnounceASVersion()) {
$versions = ZPush::GetSupportedProtocolVersions(true); $versions = ZPush::GetSupportedProtocolVersions(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment