Commit 58cc1611 authored by skummer's avatar skummer

ZP-455 #comment do not send empty responses in case of a non-ok sync status

git-svn-id: https://z-push.org/svn/z-push/trunk@1752 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 04765537
......@@ -602,7 +602,7 @@ class Sync extends RequestProcessor {
}
// in case there are no changes, we can reply with an empty response
if (!$foundchanges){
if (!$foundchanges && $status == SYNC_STATUS_SUCCESS && $emptysync == true){
ZLog::Write(LOGLEVEL_DEBUG, "No changes found. Replying with empty response and closing connection.");
self::$specialHeaders = array();
self::$specialHeaders[] = "Connection: close";
......
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