dirving
11 May 2009, 11:51 AM
Hi everyone,
I found what I believe to be a bug in the method createResponseObject in the ext adapter. The problem code is:
headerStr = o.conn.getAllResponseHeaders();
Ext.each(headerStr.split('\n'), function(v){
var t = v.split(':');
headerObj[t[0]] = t[1];
});
The problem that is happening is that when a header value contains a colon it does not get returned correctly. This is obviously occurring as a result of the split and following assignment. If the assignment line is changed to read:
headerStr = o.conn.getAllResponseHeaders();
Ext.each(headerStr.split('\n'), function(v){
var t = v.split(':');
headerObj[t[0]] = t.slice(1,t.length).join(':');
});
it seems to work fine.
I found what I believe to be a bug in the method createResponseObject in the ext adapter. The problem code is:
headerStr = o.conn.getAllResponseHeaders();
Ext.each(headerStr.split('\n'), function(v){
var t = v.split(':');
headerObj[t[0]] = t[1];
});
The problem that is happening is that when a header value contains a colon it does not get returned correctly. This is obviously occurring as a result of the split and following assignment. If the assignment line is changed to read:
headerStr = o.conn.getAllResponseHeaders();
Ext.each(headerStr.split('\n'), function(v){
var t = v.split(':');
headerObj[t[0]] = t.slice(1,t.length).join(':');
});
it seems to work fine.