Skip to content

Commit

Permalink
Merge pull request #75 from wwWallet/increase-payload-size-limits
Browse files Browse the repository at this point in the history
Set limit of accepted payloads
  • Loading branch information
kkmanos authored Dec 2, 2024
2 parents d37245f + efa61ea commit 56ff4ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const app: Express = express();
// __dirname is "/path/to/dist/src"

app.use(cookieParser());
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json({ reviver: reviverTaggedBase64UrlToBuffer }));
app.use(bodyParser.urlencoded({ extended: true, limit: '17mb' }));
app.use(bodyParser.json({ reviver: reviverTaggedBase64UrlToBuffer, limit: '17mb' }));
app.set('json replacer', replacerBufferToTaggedBase64Url);

app.use(express.static('public'));
Expand Down

0 comments on commit 56ff4ca

Please sign in to comment.