Skip to content

Commit

Permalink
fix(xhr): does not support accept encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
ido-pluto committed May 26, 2024
1 parent 1bb300c commit 07e18d9
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export default class DownloadEngineFetchStreamXhr extends BaseDownloadEngineFetc
return new Promise((resolve, reject) => {
const headers: { [key: string]: any } = {
accept: "*/*",
"Accept-Encoding": "identity",
...this.options.headers
};

Expand Down Expand Up @@ -127,7 +126,6 @@ export default class DownloadEngineFetchStreamXhr extends BaseDownloadEngineFetc
xhr.open("HEAD", url, true);

const allHeaders = {
"Accept-Encoding": "identity",
...this.options.headers
};
for (const [key, value] of Object.entries(allHeaders)) {
Expand Down

0 comments on commit 07e18d9

Please sign in to comment.