PDA

View Full Version : [FIXED] ajax: suggested patch



rejetto
17 Aug 2015, 6:32 AM
hello,
in class Ext.data.request.Ajax
you have createResponse returning an object with a missing property: headers.
This makes methods getResponseHeader and getAllResponseHeaders to fail.
Adding it to the object solves it



response = {
request: me,
requestId: me.id,
status: xhr.status,
statusText: xhr.statusText,
headers: headers,
getResponseHeader: me._getHeader,
getAllResponseHeaders: me._getHeaders
};

mitchellsimoens
17 Aug 2015, 10:52 AM
This should be fixed for 6.0.1

geek0r
19 Aug 2015, 11:12 PM
Is there a release date for 6.0.1 available? This is a show-stopper!

themightychris
24 Oct 2015, 4:34 PM
Here's a hotfix for any GPL users that need to read response headers from AJAX calls: https://github.com/JarvusInnovations/sencha-hotfixes/blob/ext/6/0/0/640/overrides/data/request/AjaxHeaders.js