Skip to content

Commit

Permalink
feat: make json parser non strict (#31)
Browse files Browse the repository at this point in the history
* Make json body parser non-strict

* prettier

---------

Co-authored-by: Jayson Harshbarger <[email protected]>
  • Loading branch information
Hypercubed and Jayson Harshbarger authored Nov 12, 2024
1 parent 86dc2a5 commit e31757f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/smoke.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function createServer(options) {
.set('host', options.host)
.set('https', options.https)
.use(bodyParser.urlencoded({extended: true}))
.use(bodyParser.json())
.use(bodyParser.json({strict: false}))
.use(multer().any());

let allowedOrigins = options.cors ? options.cors.split(',') : [];
Expand Down

0 comments on commit e31757f

Please sign in to comment.