Commit 0de98004 authored by sebastian's avatar sebastian

ZP-625 #comment before sending header, check if headers were not already sent

git-svn-id: https://z-push.org/svn/z-push/trunk@1966 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent f58d46f2
...@@ -213,7 +213,7 @@ include_once('version.php'); ...@@ -213,7 +213,7 @@ include_once('version.php');
// send vnd.ms-sync.wbxml content type header if there is no content // send vnd.ms-sync.wbxml content type header if there is no content
// otherwise text/html content type is added which might break some devices // otherwise text/html content type is added which might break some devices
if ($len == 0) if (!headers_sent() && $len == 0)
header("Content-Type: application/vnd.ms-sync.wbxml"); header("Content-Type: application/vnd.ms-sync.wbxml");
print $data; print $data;
......
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