On Feb 15, 2007, at 1:29 PM, Berger, Daniel wrote: >> -----Original Message----- >> From: James Edward Gray II [mailto:james / grayproductions.net] >> Sent: Thursday, February 15, 2007 12:19 PM >> To: Ruby Core >> Subject: Trouble with xmlrpc >> >> >> Some of the Ruby code used by TextMate makes use of xmlrpc/ >> client.rb. We are now getting bug reports from users and have >> tracked the issue back to this bit of code in that file: >> >> http://pastie.textmate.org/39421 >> >> This code throws an error if the response does not have a Content- >> Length header, but our understanding is that this header is not >> mandatory. Could anyone please explain to me why this limitation is >> in place? > > My *guess* is that this: > > elsif expected.to_i != data.size and resp["Transfer-Encoding"].nil? > > Should be: > > elsif expected != '<unknown>' and expected.to_i != data.size and > resp["Transfer-Encoding"].nil? That makes a lot more sense to me, since the code goes through the trouble of setting "<unknown>" in the first place. James Edward Gray II