Branch 'kolab-syncroton-2.2' - lib/ext
Aleksander Machniak
machniak at kolabsys.com
Mon Aug 18 09:50:20 CEST 2014
lib/ext/Syncroton/Server.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit e9b2bf305649ff09a16b55a5f3364f3e3869d943
Author: Aleksander Machniak <alec at alec.pl>
Date: Mon Aug 18 09:48:35 2014 +0200
Set application/vnd.ms-sync.wbxml content-type for empty responses (#2952)
This fixes the issue with multiple sent messages on Blackberry.
diff --git a/lib/ext/Syncroton/Server.php b/lib/ext/Syncroton/Server.php
index bbcfc3d..e89b0fe 100644
--- a/lib/ext/Syncroton/Server.php
+++ b/lib/ext/Syncroton/Server.php
@@ -135,7 +135,7 @@ class Syncroton_Server
header("MS-Server-ActiveSync: 14.00.0536.000");
// avoid sending HTTP header "Content-Type: text/html" for empty sync responses
- ini_set('default_mimetype', null);
+ ini_set('default_mimetype', 'application/vnd.ms-sync.wbxml');
try {
$command = new $className($requestBody, $device, $requestParameters);
More information about the commits
mailing list