angular/angular.js — pull request #1835 by willthemoor (2013-01-18 22:32:34+00:00)
Title: feat(httpBackend) Patch for Firefox bug w/ CORS and resonse headers

A workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=608735
In FF getAllResponseHeaders() returns null if the request is the result of CORS.

Tried to format the code so that when a FF patch is released and gains enough
traction it can easily be selected and deleted. Heavily inspired by jQuery's
patch for the same bug. This patch falls short of passing through custom headers
but covers all of the "simple response headers" in the spec at
http://www.w3.org/TR/cors/

Closes #1468