Open
Description
XHR's readyState when aborted is 4 (DONE), not 0 (UNSENT), and it returns an http status of 0 when it is aborted, so this does not work:
cljs-ajax/src/ajax/xml_http_request.cljs
Line 70 in a646036
In our code we are checking if the http status is 0 instead of checking for :failure :abort
or using -was-aborted
because of this.
Even if -was-aborted
was fixed in the protocol implementation, I think it won't return :failure :aborted
,because it returns :failure :failed
when the HTTP status is 0:
Metadata
Assignees
Labels
No labels
Activity