File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -135,12 +135,16 @@ var Loader = function (data) {
135135 * @return {Promise }
136136 */
137137 function loadCssFileFromUrl ( absoluteUrl , localFilePath ) {
138- return request . getAsync ( absoluteUrl )
138+ return request . getAsync ( {
139+ url : absoluteUrl ,
140+ method : 'GET' ,
141+ encoding : null
142+ } )
139143 . then ( function ( response ) {
140- return loadCssSources ( response [ 1 ] , absoluteUrl , localFilePath )
144+ return loadCssSources ( response [ 1 ] . toString ( encoding ) , absoluteUrl , localFilePath )
141145 } )
142146 . then ( function ( response ) {
143- return fs . outputFileAsync ( localFilePath , response )
147+ return fs . outputFileAsync ( localFilePath , response , { encoding : encoding } )
144148 } )
145149 . then ( function ( ) {
146150 logger . log ( absoluteUrl + ' -> ' + localFilePath ) ;
You can’t perform that action at this time.
0 commit comments