[MacRuby] #1306: PUT request corrupts binary data (net/http)
MacRuby
ruby-noreply at macosforge.org
Fri May 27 19:48:11 PDT 2011
#1306: PUT request corrupts binary data (net/http)
------------------------------------+---------------------------------------
Reporter: mrada@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: major | Milestone:
Component: MacRuby | Keywords:
------------------------------------+---------------------------------------
https://gist.github.com/980256 is small sample code, but not a reduction
When I try to PUT an attachment into a CouchDB, it fails and returns an
500 response, but the code works fine on CRuby. A little bit of
investigation into CouchDB revealed that that can happen when the
attachment is corrupt.
I suspect the problem is in how net/http handles binary data because
reading in the file and writing out does not change the data.
--
Ticket URL: <http://www.macruby.org/trac/ticket/1306>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list