fluidinfo/fluidinfo.js — Issue #51: Use getAllResponseHeaders() instead of the current hack to get response headers.
Author: ntoll
Created: 2011-11-19 10:06:19+00:00
State: open

Because of a bug in Mozilla (viz. https://bugzilla.mozilla.org/show_bug.cgi?id=608735) the getAllResponseHeaders() function doesn't work on CORS requests (it just returns null). As a result I hacked together something to work around this so we always had the headers from Fluidinfo available for the purposes of debugging. Unfortunately, it pollutes the JS console with errors and warnings. Since this only affects Mozilla (all other modern browsers work correctly) we should use the specified getAllResponseHeaders function and return an empty dictionary in the case of Mozilla.