From fa423e508ff5012423a1904bb17c9d61848732ee Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Mon, 26 Aug 2024 21:50:44 +0100 Subject: [PATCH] Put saver OPTIONS request: fix interpretation of success codes Fixes #8554 --- core/modules/savers/put.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/savers/put.js b/core/modules/savers/put.js index a1ebef4bb..87fe5f710 100644 --- a/core/modules/savers/put.js +++ b/core/modules/savers/put.js @@ -55,7 +55,7 @@ var PutSaver = function(wiki) { callback: function(err,data,xhr) { // Check DAV header http://www.webdav.org/specs/rfc2518.html#rfc.section.9.1 if(!err) { - self.serverAcceptsPuts = xhr.status === 200 && !!xhr.getResponseHeader("dav"); + self.serverAcceptsPuts = xhr.status >= 200 && xhr.status < 300 && !!xhr.getResponseHeader("dav"); } } });