Skip to content

Commit

Permalink
Update lib/winston/transports/http.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DABH committed Mar 24, 2024
1 parent 3cd4608 commit a1ad580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/winston/transports/http.js
Expand Up @@ -255,7 +255,7 @@ module.exports = class Http extends TransportStream {
res.on('end', () => callback(null, res)).resume()
));
const jsonStringify = configure({
maximumDepth: this.maximumDepth
...(this.maximumDepth && { maximumDepth: this.maximumDepth })
});
req.end(Buffer.from(jsonStringify(options, this.options.replacer), 'utf8'));
}
Expand Down

0 comments on commit a1ad580

Please sign in to comment.