diff options
author | Matthieu Aubry <matt@piwik.org> | 2014-07-24 12:17:00 +0400 |
---|---|---|
committer | Matthieu Aubry <matt@piwik.org> | 2014-07-24 12:17:00 +0400 |
commit | 9f3273a390c630d817cfae123565c9b5b93578f1 (patch) | |
tree | abe32b7883e69487612e766419936f61f3d6e246 /js | |
parent | 41f2457d85e7eaca6fb874d78f202998534faf77 (diff) | |
parent | 102e0c8f41ade77f044677cab6164f95898a2756 (diff) |
Merge pull request #5859 from sslavic/2xx_post_success
Treat response with any 2xx status code as successful POST track request
Diffstat (limited to 'js')
-rw-r--r-- | js/piwik.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/piwik.js b/js/piwik.js index a7ef9f24fc..05e758b3e2 100644 --- a/js/piwik.js +++ b/js/piwik.js @@ -1372,7 +1372,7 @@ if (typeof Piwik !== 'object') { // fallback on error xhr.onreadystatechange = function () { - if (this.readyState === 4 && this.status !== 200) { + if (this.readyState === 4 && !(this.status >= 200 && this.status < 300)) { getImage(request); } }; |