[MacRuby] #1316: net/http form_data chokes on instances of NSString

MacRuby ruby-noreply at macosforge.org
Sat Jun 4 20:59:00 PDT 2011


#1316: net/http form_data chokes on instances of NSString
---------------------------------------+------------------------------------
 Reporter:  greg.borenstein@…          |       Owner:  lsansonetti@…        
     Type:  defect                     |      Status:  new                  
 Priority:  blocker                    |   Milestone:                       
Component:  MacRuby                    |    Keywords:                       
---------------------------------------+------------------------------------
 In trying to use net/http within a macruby application, I discovered that
 calling Net::HTTP::Post#set_form_data with a hash whose values are
 NSStrings raises an error whereas it works fine with ruby Strings.

 Here is the error:

 /Users/greg/code/macruby-bug-report/NetHttpWeirdness/net-http-
 weirdness.rb:14:in `<main>': method `force_encoding:' does not work on
 NSStrings (ArgumentError)

 I've created a repo on Github that documents the problem in both a shell
 script and a full-fledged XCode project:
 https://github.com/atduskgreg/NetHTTPWeirdness

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1316>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list