From 8c07f8614bc2808955dde606cc6c3bfb8ab26ffa Mon Sep 17 00:00:00 2001 From: Lance Ball Date: Fri, 4 Feb 2022 12:14:18 -0500 Subject: [PATCH] fix: modifies the data type detection logic for json-seq Fixes: https://github.com/visionmedia/superagent/issues/1681 Signed-off-by: Lance Ball --- src/node/parsers/index.js | 1 + test/node/exports.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/node/parsers/index.js b/src/node/parsers/index.js index 08c9b95c0..7fb67af31 100644 --- a/src/node/parsers/index.js +++ b/src/node/parsers/index.js @@ -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'); diff --git a/test/node/exports.js b/test/node/exports.js index 37a954b44..62c5230ae 100644 --- a/test/node/exports.js +++ b/test/node/exports.js @@ -18,6 +18,7 @@ describe('exports', () => { 'application/x-www-form-urlencoded', 'application/json', 'text', + 'application/json-seq', 'application/octet-stream', 'application/pdf', 'image'