diff --git a/src/mixpanel-core.js b/src/mixpanel-core.js index e6e00759..b924f3b7 100644 --- a/src/mixpanel-core.js +++ b/src/mixpanel-core.js @@ -516,7 +516,7 @@ MixpanelLib.prototype._send_request = function(url, data, options, callback) { req.withCredentials = true; req.onreadystatechange = function () { if (req.readyState === 4) { // XMLHttpRequest.DONE == 4, except in safari 4 - if (req.status === 200) { + if (req.status === 200 || req.status === 204) { if (callback) { if (verbose_mode) { var response;