Project

General

Profile

Actions

Bug #1351

closed

Net::HTTP - set_form_data no longer allows symbols as keys.

Added by Anonymous almost 15 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-darwin9]
Backport:
[ruby-core:23115]

Description

=begin
ruby-1.8 allowed symbols as keys in set_form_data. ruby-1.9.x does not.

for example:
require "net/http"
p = Net::HTTP::Post.new("/")
p.set_form_data({:key => "value"})

the documentation doesn't explicitly state that this is allowed, but there are a few projects that rely on it.

if it is indeed a bug, i've attached a trivial patch. if not, i will submit bug reports to the individual projects.

thanks,
...bryan
=end


Files

patch.txt (536 Bytes) patch.txt Anonymous, 04/04/2009 01:24 PM
Actions #1

Updated by yugui (Yuki Sonoda) over 14 years ago

  • Status changed from Open to Assigned
  • Assignee set to aamine (Minero Aoki)

=begin

=end

Actions #2

Updated by mame (Yusuke Endoh) almost 14 years ago

  • Status changed from Assigned to Closed

=begin
Hi,

This issue was fixed at r24840 and r24841.
Thanks.

--
Yusuke Endoh
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0