1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-06 20:14:22 +00:00
This commit is contained in:
jeremy@jermolene.com 2023-03-04 11:53:42 +00:00
parent a1a1f9ccd5
commit 44fb66949e

View File

@ -74,7 +74,7 @@ HttpClient.prototype.handleHttpRequest = function(event) {
headers: requestHeaders,
data: paramObject.body,
callback: function(err,data,xhr) {
var success = (xhr.status >= 200 || xhr.status < 300) ? "complete" : "error",
var success = (xhr.status >= 200 && xhr.status < 300) ? "complete" : "error",
headers = {};
$tw.utils.each(xhr.getAllResponseHeaders().split("\r\n"),function(line) {
var pos = line.indexOf(":");