[MacRuby-devel] [MacRuby] #689: Net::HTTP.post_form() is broken.

MacRuby ruby-noreply at macosforge.org
Wed May 5 13:26:04 PDT 2010


#689: Net::HTTP.post_form() is broken.
-----------------------------+----------------------------------------------
 Reporter:  rob@…            |       Owner:  lsansonetti@…        
     Type:  defect           |      Status:  new                  
 Priority:  blocker          |   Milestone:                       
Component:  MacRuby          |    Keywords:                       
-----------------------------+----------------------------------------------

Comment(by rob@…):

 Replying to [ticket:689 rob@…]:
 > I'm running the latest nightly(05/05/2010), to reproduce:
 >
 > {{{
 > require 'net/http'
 > Net::HTTP.post_form(URI.parse('http://www.google.com/foobar', { :foo =>
 'bar' })
 >
 > # ... Produces:
 > ArgumentError: method `force_encoding:' does not work on NSStrings
 > }}}
 >
 > Thanks.
 Syntax error in the last demo, should be:
 {{{
 require 'net/http'
 Net::HTTP.post_form(URI.parse('http://www.google.com/foobar'), { :foo =>
 'bar' })

 # ... Produces:
 ArgumentError: method `force_encoding:' does not work on NSStrings
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/689#comment:1>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list