Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorMatthieu Aubry <matt@piwik.org>2014-07-24 12:17:00 +0400
committerMatthieu Aubry <matt@piwik.org>2014-07-24 12:17:00 +0400
commit9f3273a390c630d817cfae123565c9b5b93578f1 (patch)
treeabe32b7883e69487612e766419936f61f3d6e246 /js
parent41f2457d85e7eaca6fb874d78f202998534faf77 (diff)
parent102e0c8f41ade77f044677cab6164f95898a2756 (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.js2
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);
}
};