mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-12-03 19:55:31 +00:00
Put saver OPTIONS request: fix interpretation of success codes
Fixes #8554
This commit is contained in:
1 parent
bcae5cc2ef
commit
fa423e508f
1 file changed
+1
-1
@@ -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");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user