提交 c0bd104e 编写于 作者: J Joao Moreno

fixes #16767

上级 aee358a6
......@@ -47,7 +47,7 @@ export const xhrRequest: IRequestFunction = (options: IRequestOptions): TPromise
const xhr = new XMLHttpRequest();
return new TPromise<IRequestContext>((resolve, reject) => {
xhr.open(options.type, options.url, true, options.user, options.password);
xhr.open(options.type || 'GET', options.url, true, options.user, options.password);
setRequestHeaders(xhr, options);
xhr.responseType = 'arraybuffer';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册