Feature #7684
closed
Net::HTTPHeader#set_form_data should accept a String
Added by postmodern (Hal Brodigan) almost 12 years ago.
Updated almost 12 years ago.
Description
I noticed that Net::HTTPHeader#set_form_data does not accept already encoded form-data, but instead passes an Array/Hash down to URI.encode_www_form.
Files
You could just set the content body yourself. But I see no reason why set_form_data
shouldn't accept a string either
- Assignee set to naruse (Yui NARUSE)
- Target version set to 2.6
- Tracker changed from Bug to Feature
If it didn't work this way before I think it is a feature request.
- Status changed from Open to Rejected
Such backdoor breaks the convention that this method returns a valid application/x-www-form-urlencoded string.
You should set it directly to body.
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0