Skip to content

Commit

Permalink
feat: json type by default in JsonRpcServer (#2504)
Browse files Browse the repository at this point in the history
Fixes #2479
  • Loading branch information
benesjan authored Sep 25, 2023
1 parent f3e7d91 commit be38fcc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ export class JsonRpcServer {
app.use(
bodyParser({
jsonLimit: '10mb',
enableTypes: ['json'],
detectJSON: () => true,
}),
);
app.use(cors());
Expand Down

0 comments on commit be38fcc

Please sign in to comment.