https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112013-01-11T22:03:59ZRuby Issue Tracking SystemRuby master - Feature #7684: Net::HTTPHeader#set_form_data should accept a Stringhttps://redmine.ruby-lang.org/issues/7684?journal_id=353552013-01-11T22:03:59Zinjekt (Lee Jarvis)ljjarvis@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/3424">set_form_data_string.diff</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3424/set_form_data_string.diff">set_form_data_string.diff</a> added</li></ul><p>You could just set the content body yourself. But I see no reason why <code>set_form_data</code> shouldn't accept a string either</p> Ruby master - Feature #7684: Net::HTTPHeader#set_form_data should accept a Stringhttps://redmine.ruby-lang.org/issues/7684?journal_id=363822013-02-17T14:25:48Zko1 (Koichi Sasada)
<ul><li><strong>Assignee</strong> set to <i>naruse (Yui NARUSE)</i></li><li><strong>Target version</strong> set to <i>2.6</i></li></ul><p>Is it a feature request?</p> Ruby master - Feature #7684: Net::HTTPHeader#set_form_data should accept a Stringhttps://redmine.ruby-lang.org/issues/7684?journal_id=364122013-02-17T17:34:32Zdrbrain (Eric Hodel)drbrain@segment7.net
<ul><li><strong>Tracker</strong> changed from <i>Bug</i> to <i>Feature</i></li></ul><p>If it didn't work this way before I think it is a feature request.</p> Ruby master - Feature #7684: Net::HTTPHeader#set_form_data should accept a Stringhttps://redmine.ruby-lang.org/issues/7684?journal_id=364332013-02-17T21:20:52Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Rejected</i></li></ul><p>Such backdoor breaks the convention that this method returns a valid application/x-www-form-urlencoded string.</p>
<p>You should set it directly to body.</p>