Skip to content

Commit

Permalink
fix: don't parse body
Browse files Browse the repository at this point in the history
This is necessary for requests with binary payload, i.e, file uploads.
  • Loading branch information
cgawron committed Apr 10, 2024
1 parent 1b91f6f commit 46e9f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ app.use(logResponseBody);
app.use(`${PREFIX}*`,
proxy(API_URL, {
https: true,
parseBody: false,
parseReqBody: false,
proxyReqPathResolver: function (req) {
const path = req.baseUrl.replace(PREFIX, '/v1');
logger.debug('path: ', req.baseUrl, path);
Expand Down

0 comments on commit 46e9f65

Please sign in to comment.