Commit 6e24e777 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #285 in ZP/z-push from...

Merge pull request #285 in ZP/z-push from feature/ZP-964-pass-z-push-version-in-an-additional to develop

* commit '15724c36':
  ZP-964 Expose Z-Push version via additional header to authenticated users.
parent 3a5ef1ec
......@@ -179,6 +179,10 @@ include_once('version.php');
// Do the actual request
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)
if (ZPush::GetDeviceManager()->AnnounceASVersion()) {
$versions = ZPush::GetSupportedProtocolVersions(true);
......@@ -292,4 +296,4 @@ include_once('version.php');
// end gracefully
ZLog::WriteEnd();
?>
\ No newline at end of file
?>
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