temporarily send the 'modified' header as well as 'newer' so we continue to support older servers
authorDan Mills <thunder@mozilla.com>
Tue, 10 Feb 2009 00:52:48 -0800
changeset 45229 2a09c602347a383288bed810e201eda18a032b40
parent 45228 98effaa4dc0f767d13875bce1f3eed4302a5ba31
child 45230 5d56eae19ab45751dea5f354dc95a66021f1bc55
push idunknown
push userunknown
push dateunknown
temporarily send the 'modified' header as well as 'newer' so we continue to support older servers
services/sync/modules/base_records/collection.js
--- a/services/sync/modules/base_records/collection.js
+++ b/services/sync/modules/base_records/collection.js
@@ -72,18 +72,20 @@ Collection.prototype = {
 
   _rebuildURL: function Coll__rebuildURL() {
     // XXX should consider what happens if it's not a URL...
     this.uri.QueryInterface(Ci.nsIURL);
 
     let args = [];
     if (this.older)
       args.push('older=' + this.older);
-    else if (this.newer)
+    else if (this.newer) {
       args.push('newer=' + this.newer);
+      args.push('modified=' + this.newer); // tmp hack for older servers
+    }
     if (this.full)
       args.push('full=1');
     if (this.sort)
       args.push('sort=' + this.sort);
 
     this.uri.query = (args.length > 0)? '?' + args.join('&') : '';
   },