Skip to content

Commit

Permalink
feat: use responseType blob
Browse files Browse the repository at this point in the history
  • Loading branch information
leo6104 committed Feb 28, 2021
1 parent 8e82871 commit ef3177c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion dist/esm/remotePackage.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/esm/remotePackage.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion dist/plugin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugin.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/remotePackage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ export class RemotePackage extends Package implements IRemotePackage {
url: this.downloadUrl,
method: "GET",
filePath: file,
fileDirectory: Directory.Data
fileDirectory: Directory.Data,
responseType: "blob"
});
} catch (e) {
CodePushUtil.throwError(new Error("An error occured while downloading the package. " + (e && e.message) ? e.message : ""));
Expand Down

0 comments on commit ef3177c

Please sign in to comment.