We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undici\lib\api\api-request.js line 54 throws an error if a custom pipe prototype for array is defined.
undici\lib\api\api-request.js
Define a custom pipe prototype for array: Array.prototype['pipe'] = function () { }
Array.prototype['pipe'] = function () { }
Create a undici request with body being an array.
The request succeeds.
The request fails; the error body.on is not a function is thrown.
body.on is not a function
Windows 11
The text was updated successfully, but these errors were encountered:
An array is not a valid body. So while the error might be better this should still fail.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Bug Description
undici\lib\api\api-request.js
line 54 throws an error if a custom pipe prototype for array is defined.Reproducible By
Define a custom pipe prototype for array:
Array.prototype['pipe'] = function () { }
Create a undici request with body being an array.
Expected Behavior
The request succeeds.
Logs & Screenshots
The request fails; the error
body.on is not a function
is thrown.Environment
Windows 11
Additional context
The text was updated successfully, but these errors were encountered: