Skip to content

Commit

Permalink
Add comment about not consuming request data stream
Browse files Browse the repository at this point in the history
  • Loading branch information
eliangcs committed Oct 31, 2024
1 parent cb6bdd9 commit 82b50d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/tools/fetch-logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const _ = require('lodash');
const { ALLOWED_HTTP_DATA_CONTENT_TYPES } = require('./http');

const stringifyRequestData = (data) => {
// Be careful not to consume the data if it's a stream
if (typeof data === 'string') {
return data;
} else if (data instanceof URLSearchParams) {
Expand Down

0 comments on commit 82b50d5

Please sign in to comment.