mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-22 04:21:02 -08:00
Put saver OPTIONS request: fix interpretation of success codes
Fixes #8554
This commit is contained in:
parent
bcae5cc2ef
commit
fa423e508f
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue