Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I'm having problems posting data containing multibyte chars using net/http. I found an old bug in the ruby 1.9 bug tracker that was resolved by switching body.length to body.bytesize. The same thing needs to be done in the http_connection gem. http_connection-1.3.0/lib/net_fix.rb line 94 contains: self.content_length = body.length it should be changed to: self.content_length = body.bytesize to work with multi byte chars. / Jonas
- Loading branch information