Commit 0d86d5c7 authored by mku's avatar mku

ZP-233 #comment Nokia N9 MeeGo requests <Range> in ItemOperations - this...

ZP-233 #comment Nokia N9 MeeGo requests <Range> in ItemOperations - this should prevent the server running out of memory. Range still has to be implemented. #time 20m

git-svn-id: https://z-push.org/svn/z-push/trunk@1485 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 6834f2a6
......@@ -170,6 +170,12 @@ class ItemOperations extends RequestProcessor {
return false;
}
if(self::$decoder->getElementStartTag(SYNC_ITEMOPERATIONS_RANGE)) {
$operation["range"] = self::$decoder->getElementContent();
if(!self::$decoder->getElementEndTag())
return false;
}
//break if it reached the endtag
$e = self::$decoder->peek();
if($e[EN_TYPE] == EN_TYPE_ENDTAG) {
......@@ -177,12 +183,6 @@ class ItemOperations extends RequestProcessor {
break;
}
}
if(self::$decoder->getElementStartTag(SYNC_ITEMOPERATIONS_RANGE)) {
$operation["range"] = self::$decoder->getElementContent();
if(!self::$decoder->getElementEndTag())
return false;
}
}
}
......
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