I don't know whether this has been solved in 1.3 or not. but the problem is that when there are multi same headers such as "Set-Cookie", only the last one will be filled in xhr.headers.
The cause root is in rhino.js, when iterating the headers from raw urlconnection, only simply "headers[name]=value" , so previous headers with same name will be overwriten.
I don't know whether this has been solved in 1.3 or not. but the problem is that when there are multi same headers such as "Set-Cookie", only the last one will be filled in xhr.headers.
The cause root is in rhino.js, when iterating the headers from raw urlconnection, only simply "headers[name]=value" , so previous headers with same name will be overwriten.