Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Don't send options we don't need to fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Mar 29, 2019
1 parent 662a0e4 commit 82bc92c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/components/views/messages/MFileBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,12 +401,7 @@ module.exports = React.createClass({

// Start a fetch for the download
// Based upon https://stackoverflow.com/a/49500465
fetch(contentUrl, {
headers: new Headers({
'Origin': window.location.origin,
}),
mode: 'cors',
}).then((response) => response.blob()).then((blob) => {
fetch(contentUrl).then((response) => response.blob()).then((blob) => {
const blobUrl = URL.createObjectURL(blob);

// We have to create an anchor to download the file
Expand Down

0 comments on commit 82bc92c

Please sign in to comment.