Fix bug 784487 - calendar-multiget request is not correctly formatted (regression). r=philipp,a=philipp
authorinfo@dupondje.be <info@dupondje.be>
Wed, 22 Aug 2012 17:24:49 +0200
changeset 12956 3ff34078650423e36932f528fb7917367196009c
parent 12955 90b0d23e8746c9f0c3ef613cd1d3786888abd8a5
child 12957 5bfe2d75751484593db51efbd676a62b759907ed
push idunknown
push userunknown
push dateunknown
reviewersphilipp, philipp
bugs784487
Fix bug 784487 - calendar-multiget request is not correctly formatted (regression). r=philipp,a=philipp
calendar/providers/caldav/calDavRequestHandlers.js
--- a/calendar/providers/caldav/calDavRequestHandlers.js
+++ b/calendar/providers/caldav/calDavRequestHandlers.js
@@ -683,21 +683,21 @@ multigetSyncHandler.prototype = {
             // encodes it before it is sent to the server
             let locpath = this.calendar.ensureEncodedPath(this.itemsNeedFetching.pop());
             hrefString += "<D:href>" + cal.xml.escapeString(locpath) + "</D:href>";
         }
 
         let queryXml =
           xmlHeader +
           '<C:calendar-multiget xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">' +
-            hrefString +
             '<D:prop>' +
               '<D:getetag/>' +
               '<C:calendar-data/>' +
             '</D:prop>' +
+            hrefString +
           '</C:calendar-multiget>';
 
         let requestUri = this.calendar.makeUri(null, this.baseUri);
         if (this.calendar.verboseLogging()) {
             cal.LOG("CalDAV: send(" + requestUri.spec + "): " + queryXml);
         }
         let httpchannel = cal.prepHttpChannel(requestUri,
                                               queryXml,