Hi again,

Ok, according to this 
test: 
https://github.com/angular/angular.js/blob/39915836e0604723c5edb7d915d3f41c0abda65e/test/ng/httpSpec.js#L1333
 
, the status is supposed to be 0 when the request is cancelled.
I guess I can trust this.

On Wednesday, July 2, 2014 3:43:51 PM UTC+2, Simon Jodet wrote:
>
> Hi,
>
> I have a question regarding xhr query cancellation.
>
> I can't find a way in my $http interceptor to check if the query was 
> cancelled or failed.
> The rejection object doesn't contain the correct information.
> I see some reference in Angular's code to an ABORTED status in the 
> timeoutRequest function but it doesn't show in the rejection object in the 
> interceptor, its status is 0 and statusText is an empty string.
>
> Is there a way to make the difference?
>
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to