提交 0c7236b2 编写于 作者: M Matt Zabriskie

Fixing issue referencing wrong headers

上级 f21293d3
......@@ -32,14 +32,15 @@ var axios = module.exports = function axios(options) {
request.onreadystatechange = function () {
if (request && request.readyState === 4) {
// Prepare the response
var headers = parseHeaders(request.getAllResponseHeaders());
var response = {
data: transformData(
request.responseText,
options.headers,
headers,
options.transformResponse
),
status: request.status,
headers: parseHeaders(request.getAllResponseHeaders()),
headers: headers,
config: options
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册