提交 ad6511bd 编写于 作者: K Kevan Stannard

Only override mime type as needed

上级 576c75da
......@@ -184,7 +184,7 @@ Object.assign( FileLoader.prototype, {
if ( this.responseType !== undefined ) request.responseType = this.responseType;
if ( this.withCredentials !== undefined ) request.withCredentials = this.withCredentials;
if ( request.overrideMimeType ) request.overrideMimeType( this.mimeType !== undefined ? this.mimeType : 'text/plain' );
if ( this.mimeType && request.overrideMimeType ) request.overrideMimeType( this.mimeType );
request.send( null );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册