1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-10 20:09:57 +00:00

Put saver OPTIONS request: fix interpretation of success codes

Fixes #8554
This commit is contained in:
Jeremy Ruston 2024-08-26 21:50:44 +01:00
parent bcae5cc2ef
commit fa423e508f

View File

@ -55,7 +55,7 @@ var PutSaver = function(wiki) {
callback: function(err,data,xhr) { callback: function(err,data,xhr) {
// Check DAV header http://www.webdav.org/specs/rfc2518.html#rfc.section.9.1 // Check DAV header http://www.webdav.org/specs/rfc2518.html#rfc.section.9.1
if(!err) { if(!err) {
self.serverAcceptsPuts = xhr.status === 200 && !!xhr.getResponseHeader("dav"); self.serverAcceptsPuts = xhr.status >= 200 && xhr.status < 300 && !!xhr.getResponseHeader("dav");
} }
} }
}); });