提交 d65f9f7e 编写于 作者: M mzabriskie

Merging master

......@@ -27,7 +27,7 @@ module.exports = function xhrAdapter(resolve, reject, config) {
// Create the request
var request = new(XMLHttpRequest || ActiveXObject)('Microsoft.XMLHTTP');
request.open(config.method, buildUrl(config.url, config.params), true);
request.open(config.method.toUpperCase(), buildUrl(config.url, config.params), true);
// Listen for ready state
request.onreadystatechange = function () {
......
......@@ -63,7 +63,7 @@ describe('interceptors', function () {
responseText: 'OK'
});
expect(request.method).toBe('post');
expect(request.method).toBe('POST');
expect(request.url).toBe('/bar');
});
});
......
......@@ -21,7 +21,7 @@ describe('options', function () {
}, 'waiting for the request', 100);
runs(function () {
expect(request.method).toBe('get');
expect(request.method).toBe('GET');
});
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册