mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-06 21:05:37 +00:00
Allow 201 response code for item modifications; no bug
This commit is contained in:
parent
078b46a709
commit
d62cd394e2
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user