Skip to content

Commit

Permalink
fix: delete content-type header when is used upload middleware
Browse files Browse the repository at this point in the history
fixes the issue described [here](#41 (comment))
  • Loading branch information
jaycenhorton committed Aug 21, 2020
1 parent a9a036f commit ef171f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/middlewares/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default function uploadMiddleware(): Middleware {

req.fetchOpts.method = 'POST';
req.fetchOpts.body = formData;
delete req.fetchOpts.headers['Content-Type'];
}

const res = await next(req);
Expand Down

0 comments on commit ef171f1

Please sign in to comment.