Skip to content

Commit

Permalink
add support pdf in body of request
Browse files Browse the repository at this point in the history
  • Loading branch information
blowin authored Dec 1, 2021
1 parent 9349490 commit 02de202
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/middleware/express.app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export class ExpressAppConfig {
this.app.use(bodyParser.urlencoded());
this.app.use(bodyParser.text());
this.app.use(bodyParser.json());
this.app.use(bodyParser.raw({ type: 'application/pdf' }));

this.app.use(this.configureLogger(appOptions.logging));
this.app.use(express.json());
Expand Down

0 comments on commit 02de202

Please sign in to comment.