Skip to content

Commit e0e6a19

Browse files
committed
default to error 500 on xdr onerror
1 parent d751704 commit e0e6a19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xhr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Request.prototype.send = function(callback) {
2121
if (xdr.responseText === 'Request Entity Too Large') {
2222
callback(413, xdr.responseText);
2323
} else {
24-
callback(400, xdr.responseText);
24+
callback(500, xdr.responseText);
2525
}
2626
};
2727
xdr.ontimeout = function () {};

0 commit comments

Comments
 (0)