Skip to content

Error when trying to write boolean type #137

@simov

Description

@simov

Hi, there,

We recently had this bug report request/request#1693 in request

It turned out that the user passes a boolean value to one of the form-data's fields (field:false) that results in _http_outgoing error in core.

My question is: Is the best place to fix that issue here, like you do for number types?

// all that streamy business can't handle numbers
if (typeof value == 'number' || typeof value == 'boolean') value = ''+value;

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions