> -----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?

Regards,

Dan


This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful.  If you have received this communication 
in error, please immediately notify the sender by reply e-mail and destroy 
all copies of the communication and any attachments.