Allow 201 response code for item modifications; no bug

This commit is contained in:
dmose%mozilla.org 2005-12-28 23:46:43 +00:00
parent 078b46a709
commit d62cd394e2

View File

@ -315,9 +315,10 @@ calDavCalendar.prototype = {
listener.onOperationComplete = function(aStatusCode, aResource,
aOperation, aClosure) {
// 201 = HTTP "Created"
// 204 = HTTP "No Content"
//
if (aStatusCode == 204) {
if (aStatusCode == 204 || aStatusCode == 201) {
debug("Item modified successfully.\n");
var retVal = Components.results.NS_OK;