Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #9 from ministryofjustice/fix-uploads
Browse files Browse the repository at this point in the history
Fix file uploads in RStudio
  • Loading branch information
andyhd authored Aug 2, 2017
2 parents bf1ca8b + 437ec4b commit ef3d9af
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ proxy.on('proxyReq', function (proxyReq, req, res, options) {
setAuthCookie(proxyReq);
if (req.body) {
let length = Buffer.byteLength(req.body);
proxyReq.setHeader('Content-Type', 'application/json');
proxyReq.setHeader('Content-Length', length);
proxyReq.write(req.body);
}
Expand Down

0 comments on commit ef3d9af

Please sign in to comment.