Skip to content

Commit b1aeb72

Browse files
authored
Merge pull request #19 from fhswf/cgawron-patch-2
fix: increase proxy limit
2 parents 351fa23 + d8aa19f commit b1aeb72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ const doProxy = (req, res) => {
301301

302302
const parsingProxy = proxy(API_URL, {
303303
https: true,
304+
limit: '10mb',
304305
parseReqBody: true,
305306
proxyReqPathResolver: function (req) {
306307
const path = req.baseUrl.replace(PREFIX, '/v1');
@@ -331,6 +332,7 @@ const doProxy = (req, res) => {
331332

332333
const rawProxy = proxy(API_URL, {
333334
https: true,
335+
limit: '10mb',
334336
parseReqBody: false,
335337
proxyReqPathResolver: function (req) {
336338
const path = req.baseUrl.replace(PREFIX, '/v1');

0 commit comments

Comments
 (0)