Skip to content

Commit

Permalink
fix: modifies the data type detection logic for json-seq
Browse files Browse the repository at this point in the history
Fixes: #1681

Signed-off-by: Lance Ball <[email protected]>
  • Loading branch information
lance committed Feb 4, 2022
1 parent 84206c7 commit 8c07f86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/node/parsers/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
exports['application/x-www-form-urlencoded'] = require('./urlencoded');
exports['application/json'] = require('./json');
exports.text = require('./text');
exports['application/json-seq'] = exports.text;

const binary = require('./image');

Expand Down
1 change: 1 addition & 0 deletions test/node/exports.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ describe('exports', () => {
'application/x-www-form-urlencoded',
'application/json',
'text',
'application/json-seq',
'application/octet-stream',
'application/pdf',
'image'
Expand Down

0 comments on commit 8c07f86

Please sign in to comment.