New issue
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
Handle null value in form parameters #1832
Comments
The field should be ignored. The underlying form-data module will most likely throw an error anyway. Stringifying nulls and booleans is language specific and different servers may expect different formats. |
thanks @simov, do you want a PR for this ? |
I have the same issue. |
+1 |
1 similar comment
+1 |
Request only passes the values to the underlying form-data module. The form-data team is planning to stringify null values in v2.0, see form-data/form-data#147 I just added a test here #2208 that expects the underlying form-data module to throw when the value is null. It still throws, but not in request. |
The code below fails because
key
hasnull
as value:Stacktrace:
I was thinking on create a PR but I don't know how do you want to deal with this scenario?
The text was updated successfully, but these errors were encountered: