Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix(httpBackend): should not read response data when request is aborted #4940

Closed

Conversation

gonzaloruizdevilla
Copy link
Contributor

When a request is aborted, it makes no sense to read the response headers or text.
Also in IE9, trying to read data (either response headers or text) from an aborted request
throws an Error c00c023f.

Fixes #4913

When a request is aborted, it makes no sense to read the response headers or text.
Also in IE9, trying to read data (either response headers or text) from an aborted request
throws an Error c00c023f.

Fixes angular#4913
@petebacondarwin
Copy link
Member

@gonzaloruizdevilla - Have you signed the CLA?

@gonzaloruizdevilla
Copy link
Contributor Author

Yes, when I sent PR #1692

@IgorMinar IgorMinar closed this in 6f1050d Nov 22, 2013
@IgorMinar
Copy link
Contributor

I refactored the commit just slightly (I wanted to avoid monkey-patching the xhr object) and merged this. thanks!

jamesdaily pushed a commit to jamesdaily/angular.js that referenced this pull request Jan 27, 2014
When a request is aborted, it makes no sense to read the response headers or text.
Also in IE9, trying to read data (either response headers or text) from an aborted request
throws an Error c00c023f.

Fixes angular#4913
Closes angular#4940
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this pull request Jan 27, 2014
When a request is aborted, it makes no sense to read the response headers or text.
Also in IE9, trying to read data (either response headers or text) from an aborted request
throws an Error c00c023f.

Fixes angular#4913
Closes angular#4940
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aborting xhr request results in console.error in IE9
3 participants